2 ms·
Oh, I am on HN :) Okay, point taken. I didn't know about this name. "pperf" maybe then. Note that this is still work in progress, I just had to finish another
by rurban 12y ago
Oh, I am on HN :)
Okay, point taken. I didn't know about this name. "pperf" maybe then.
Note that this is still work in progress, I just had to finish another project, and will come back to this one soon.
EDIT: I've renamed the frontend to "pperf" now https://github.com/rurban/Perfect-Hash/commit/b475886f37d9 https://github.com/rurban/Perfect-Hash/commit/b475886f37d9
But the memcmp trick with unrolling of the comparisons beforehand for constant keys is already usable, and I believe someone already considered that optimization for gcc and llvm. If I remember I even saw a patch already.
It should be used for switch statements with constant keys.
- octo_t 12y agoI think this is the first time I've seen a person on HN be told "oh a product already exists with this name, maybe change it" and they actually have. Props :)