You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by GitBox <gi...@apache.org> on 2019/11/19 14:54:39 UTC

[GitHub] [commons-codec] yonik commented on issue #27: Murmur3fix

yonik commented on issue #27: Murmur3fix
URL: https://github.com/apache/commons-codec/pull/27#issuecomment-555543920
 
 
   > I do not think that we should enforce the UTF-8 encoding on the char sequence. A char is a 16-bit unsigned integer. A simpler approach would be to encode the chars as unsigned 16-bit integers.
   
   It looks like this is originally mine, so I'll chime in... the purpose of this method is not a generic string hash, but an optimization for when one wants murmur3 over UTF-8 specifically.  This level of specification is needed for systems that need well defined hashes to enable matching in different languages (typically for things like routing in distributed systems.)

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services