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 xxHash instead of SHA1 for speed #1107

Merged
merged 1 commit into from
Apr 3, 2021
Merged

Use xxHash instead of SHA1 for speed #1107

merged 1 commit into from
Apr 3, 2021

Conversation

evanw
Copy link
Owner

@evanw evanw commented Apr 3, 2021

Context: #1099 (comment). Using xxHash instead of SHA1 is roughly a 6x speedup (hashing time goes from 25ms to 6ms on the main benchmark).

Note that I have also recently changed the hash to be computed in parallel so as to not slow down builds that don't need hashes. So this PR will no longer impact the main benchmark. But switching to xxHash is still relevant for scenarios where the hash is needed (mainly when code splitting is enabled) so this is still a useful change.

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