Skip to content

Conversation

@hauntsaninja
Copy link
Contributor

@hauntsaninja hauntsaninja commented Mar 25, 2024

On a large, existing venv on my system, running: python -m compileall -f -j 10 -qq . with warm disk cache and without this change has timings of 41.7s, 42.9s, 42s. With this change, I get timings of 35.7s, 34.9s, 34.6s, for about a 20% speed up. chunksize=2 was a smaller speedup, chunksize=8 was no additional speedup.

This seems pretty straightforward, but let me know if you're interested in a more reproducible benchmark or running it on other systems.

@hauntsaninja hauntsaninja changed the title Increase chunksize when compiling pyc in parallel gh-117205: Increase chunksize when compiling pyc in parallel Mar 25, 2024
@hauntsaninja hauntsaninja merged commit b4fe02f into python:main Apr 3, 2024
@hauntsaninja hauntsaninja deleted the gh-117205 branch April 3, 2024 22:24
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.

2 participants