-
-
Notifications
You must be signed in to change notification settings - Fork 34.4k
Major slowdown on large listcomp #117108
Copy link
Copy link
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
Metadata
Metadata
Assignees
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
Projects
Status
Done
Bug report
Bug description:
That started within the last 48 hours, on the main branch. Here's test code; it's possible it could be simplified
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 PRs