JSPM

string-hash-64

1.0.3
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 94127
  • Score
    100M100P100Q167559F
  • License MIT

fast 64 bit string hashing function

Package Exports

  • string-hash-64

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (string-hash-64) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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.