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

updated murmerhash3_32_gc to slightly faster (15%) GTP-4 version #17

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

wpwoodjr
Copy link

@wpwoodjr wpwoodjr commented Apr 19, 2023

GPT-4 created a version of this when I asked for a hash routine. I investigated and found it was based on Gary's version. I've tested the results and performance, and GPT-4's version produces the same results and is about 15% faster. This is most likely due to the use of Math.imul in GPT-4's version.

@wpwoodjr
Copy link
Author

It's 15% faster in Chrome. In Firefox, it's 90% faster!

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