3 ms·
i'd bet it doesn't matter.
by baq 11y ago
i'd bet it doesn't matter.
- siculars 11y agoAuthor here. We hash the key so the number of bytes are negligible. So, I'd agree, I don't think it matters.
- zcam 11y agoIsn't it more about the number of cycles it takes to generate the hash more than it's size, since you're likely to do that very often in a db context?
- siculars 11y agoProbably. I'd venture to say the reason we use SHA is due to its uniform distribution over its speed (or lack thereof.)
- zcam 11y agoI guess it's worth investigating, murmur has been in use by some big names (cassandra, elastic search, hadoop, etc...) for a while in similar contexts.
- RBerenguel 11y agoI was pretty sure (checked almost 2 years ago) that murmur3 had a uniform distribution, too. And in terms of speed is a relatively easy gain