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 — Defer import of zipp by danielhollas · Pull Request #502 · python/importlib_metadata Conversation
Contributor
Impoting zipp takes between 2-4 ms on my machine, which is at least 10% of overall import time of the To estimate the cost of repeatedly calling ❯ python -m timeit -s "import zipp" "import zipp" 5000000 loops, best of 5: 59.9 nsec per loop (this is with cpython main branch) Since this is in a codepath that reads a zipfile from disk, this overhead is negligible.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
This was referenced
|
There was an error while loading. Please reload this page.
|
I'm starting to feel like a frog being slowly boiled. I'm seeing repeated optimizations like this being handled piecemeal, and each time I do, I need to go through the same process: point out that there's a systemic problem that has no solution, ensure there's a comment protecting the change and linking to the motivation, then merge and roll out the change. </rant> Looks good. I'll add the comment linking back to the motivation and analysis (here). Thanks for the contrib. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.