Skip to content

Smooth out redundant lists - #102

Open
geographybuff wants to merge 2 commits into
rspeer:masterfrom
geographybuff:master
Open

geographybuff wants to merge 2 commits into
rspeer:masterfrom
geographybuff:master

Conversation

@geographybuff

@geographybuff geographybuff commented May 7, 2025

Copy link
Copy Markdown

Removes unnecessary step that created nested lists, only for them to be flattened in the very next step, when the fully flattened lists can instead be instantiated in a single step, thus saving (subject to testing) perhaps 1-2% of the time on the entire .union() operation

geographybuff and others added 2 commits May 7, 2025 02:39
Removes unnecessary step that created nested lists, only for them to be flattened in the very next step, when the fully flattened lists can instead be instantiated in a single step, thus saving (subject to testing) perhaps 20% of the time on the entire .union() operation
The module imports itertools as it, so the bare name isn't bound.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant