3 ms·
For the love of FSM, please don't call your library "phash". "phash" is already in wide use for "perceptual hash", or the hashing mechanisms used for things lik
by fake-name 12y ago
For the love of FSM, please don't call your library "phash". "phash" is already in wide use for "perceptual hash", or the hashing mechanisms used for things like fuzzy image searching.
- rurban 12y agoOh, 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 :)