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 — Major slowdown on large listcomp · Issue #117108 · python/cpython Closed Labels interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)performancePerformance or resource usagePerformance or resource usagerelease-blockertype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error DescriptionBug reportBug description:That started within the last 48 hours, on the main branch. Here's test code; it's possible it could be simplified if 1: class Obj: def __init__(self, i): self.val = i import sys print(sys.version) from time import perf_counter as now start = now() xs = [Obj(i) for i in range(2**21)] finish = now() print(finish - start) Under 3.12.2 it takes about a second, but under current main about 21 seconds. If the size of the list is increased, it appears to suffer much worse than linear-time slowdown. CPython versions tested on:CPython main branch Operating systems tested on:Windows Linked PRsActivity
MetadataMetadataAssigneesLabelsinterpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)performancePerformance or resource usagePerformance or resource usagerelease-blockertype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error Projects
MilestoneRelationshipsDevelopmentIssue 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. |