GitHub - mstdokumaci/string-hash-64: Fast string hashing function for Node.JS, generates 64 bit hashes.

1 min read Original article ↗

Fast string hashing function for Node.JS, generates 64 bit hashes.

License

MIT license

11 stars 3 forks Branches Tags Activity

Notifications You must be signed in to change notification settings

Repository files navigation

string-hash-64

Build Status js-standard-style npm version

An improved version of djb2. Generates 64 bit integer hashes. Returns a number between 0 and 18446744073709552000.

Repository includes test for hashing 65 million strings with zero collisions. That's 400k+ less than what you get with djb2.

Performs as fast as djb2, only the generated hashes will consume almost twice memory in size.

About

Fast string hashing function for Node.JS, generates 64 bit hashes.

Topics

Resources

Readme

License

MIT license

Activity

Stars

11 stars

Watchers

1 watching

Forks

3 forks

Packages

No packages published