js_int icon indicating copy to clipboard operation
js_int copied to clipboard

Can Hash implementation be improved?

Open jplatte opened this issue 6 years ago • 1 comments

Title should be self-explanatory.

jplatte avatar Jun 16 '19 15:06 jplatte

I had a look at the hashing interface, which I had never done before. We theoretically have 54 bits of information in Int and 53 bits in UInt. Both could be encoded in 7 bytes to give to the hasher instead of using the u64 value we currently use. After having thought about it, this only makes sense to me if we store our types in 7-byte form as well though. I personally don't see a large benefit in the saved byte per stored Int / UInt, but it would be a fun project. I'll create a new issue for it.

jplatte avatar Jun 19 '19 16:06 jplatte