Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6212169
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T06:28:02+00:00 2026-05-24T06:28:02+00:00

Does anyone know of a good library (windows) that will allow me to create

  • 0

Does anyone know of a good library (windows) that will allow me to create a static (not runtime) perfect hash for millions of items (probably about 10m)?

I essentially have millions of sets of strings and I want to know at a minimal O(1) if a string is in my set or not – that’s it. I don’t need it to actually look up the string – there’s no value behind it (other than the existance).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T06:28:04+00:00Added an answer on May 24, 2026 at 6:28 am

    Try:

    • Bob Jenkins’s perfect.
    • CMPH
    • gperf

    perfect and gperf produce tables in C code form, which should work fine on Windows. I don’t know what CMPH’s output is.

    CMPH has a comment saying:

    gperf is a bit different, since it was conceived to create very fast perfect hash functions for small sets of keys and CMPH Library was conceived to create minimal perfect hash functions for very large sets of keys.

    If that’s correct, then with your million-key case, you should probably prefer CMPH to gperf. I don’t know how they compare to Jenkins’s perfect. It should be simple enough to try all three and benchmark them against each other.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Good afternoon, does anyone know of a library that would allow me to read
Does anyone know any good and free .NET Windows Controls Library
Does anyone know a good Java lib that will hook into SVN so I
Does anyone know of a good replacement to Watij which will allow automated tests
Does anyone know of a good .NET library that allows me to parse source
Does anyone know a good library to allow us to programmatically monitor a parallel
Does anyone know any good library/tutorial that can do asynchronous image loading for a
Does anyone know of a good platform agnostic example or library that does Facebook
Does anyone know of a good library (or code snippet) for converting a TimeSpan
Does anyone know of a good (preferably open source) library for dealing with the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.