Search code examples
c++linuxopen-source64-bitgnu

Is safe to use gperf generated perfect hash function?


I'm now considering using gperf generated hash function to replace our old one, but I had no idea if it's safe or not, and will that add our maintaining cost.

The reliability and system complexity is our first consideration.

Is there someone who had used gperf generated hash function in big project?

Is safe to use it in my project?

BTW, our project is a C++ project, runs on a 64-bit Linux machine.

Thanks in advance!


Solution

  • Never had to use the API myself, but, in this write-up, which seems to be from the late 90s, they show that GPERF has been used in TAO, gnu indent, and a handful of other applications.

    It's been out for a while, and likely to be well shaken out. Here's an interesting developer works writeup.