KEMBAR78
Use sha1 for hashing by hauntsaninja · Pull Request #17953 · python/mypy · GitHub
Skip to content

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

@github-actions
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.

2 participants