bugmakerrrrrr opened a new pull request, #14720: URL: https://github.com/apache/lucene/pull/14720
### Description <!-- If this is your first contribution to Lucene, please make sure you have reviewed the contribution guide. https://github.com/apache/lucene/blob/main/CONTRIBUTING.md --> This PR tries to utilize the unused part of the id to cache the high-order bits of the hashcode to speed up `BytesRefHash`. I used 1 million 16-byte UUIDs to [benchmark this change](https://github.com/bugmakerrrrrr/lucene/commit/43d2945be75acb2464c36ca1eac6067445687fe2), and the results are as follows.  The `baselineXXX` version is the current implementation, the `cachedXXX` version uses a separate array of ints to cache hash codes, and the candidate version is the implementation of this PR. -- 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. To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org