Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use sha1 for hashing #17953

Merged
merged 1 commit into from
Oct 15, 2024
Merged

Use sha1 for hashing #17953

merged 1 commit into from
Oct 15, 2024

Conversation

hauntsaninja
Copy link
Collaborator

@hauntsaninja hauntsaninja commented Oct 15, 2024

This is a pretty small win, it's below the noise floor on macrobenchmark, but if you time the hashing specifically it saves about 100ms (0.5%) on python -m mypy -c 'import torch' --no-incremental. blake2b is slower

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Copy link
Contributor

According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

@hauntsaninja hauntsaninja marked this pull request as ready for review October 15, 2024 07:50
Copy link
Collaborator

@JukkaL JukkaL left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Every little helps!

@JukkaL JukkaL merged commit 284677e into python:master Oct 15, 2024
18 checks passed
@hauntsaninja hauntsaninja deleted the sha1 branch October 15, 2024 08:48
hauntsaninja added a commit that referenced this pull request Oct 20, 2024
This is a pretty small win, it's below the noise floor on
macrobenchmark, but if you time the hashing specifically it saves about
100ms (0.5%) on `python -m mypy -c 'import torch' --no-incremental`.
blake2b is slower
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.

None yet

2 participants