-
-
Notifications
You must be signed in to change notification settings - Fork 73
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
hashid #1
Comments
Also it is called Knuth's integer hash (not Kunth) |
Wow, what a typo! I don't think this method will be any slower than hashids. If you take a look at the Optimus class you wil see that the technique is super simple. I will do a benchmark soon, but performance won't be an issue ;) |
These are the results for a simple benchmark that simply constructs both classes and then encodes and decodes an id for 100.000 times:
|
Converted your code to go: https://github.com/pjebs/optimus-go |
Expect more traffic |
Cool! |
Is this quicker than hashid (using an all-number alphabet)?
http://hashids.org/
The text was updated successfully, but these errors were encountered: