News for hackers. Stuff that matters.
Re:Modern Perfect Hashing by zvr on Saturday October 25, 2025 @05:34AM (#45702513)
I've written code that, during initialization, after all keys have been collected, essentially called gperf to create the lookup function, compiled it, and then dynamically loaded it, so that the (long-running) program would be able to use it.
Re:Modern Perfect Hashing by mgaunard on Saturday October 25, 2025 @05:49AM (#45702575)
That means you need to deploy with a compiler etc., not ideal.
Re:Modern Perfect Hashing by HackerThemAll on Sunday October 26, 2025 @06:43PM (#45715766)
This situation doesn't have ideal solution. You either bundle compiler for the best speed at runtime, or you lose efficiency.
Re:Modern Perfect Hashing by zvr on Wednesday October 29, 2025 @06:30AM (#45744935)
Yes, it was a controlled environment and it was known that there will be gperf and gcc available.