GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Populate the initial per-interpreter interned_strings dict with runtime-global singleton strings · Issue #103571 · python/cpython Closed as not planned Closed as not planned Copy link Labels interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)performancePerformance or resource usagePerformance or resource usagetype-featureA feature request or enhancementA feature request or enhancement DescriptionFeature or enhancementRe-use the runtime-global singleton strings inside the interned_strings dict to reduce duplication of Pitchbpo-46430 (#30683) caused an interesting side effect; the code
However, some characters do not have this behaviour (for example, The interned_dict is per interpreter, and is initialized by Using the synthetic test case: def test(): total = 0 for ch in 'abc': if ch in {'a', 'c'}: total += 1 return total timeit.timeit(`test()`, globals=globals()) I get a ~5.43% improvement when the interned_strings dict reuses the runtime-global singleton strings. Previous discussionLinked PRsActivity
MetadataMetadataAssigneesLabelsinterpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)performancePerformance or resource usagePerformance or resource usagetype-featureA feature request or enhancementA feature request or enhancement ProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |