I'd like to try using the IntIntHashMap from Lucene 9.x to decrease latency and memory usage for counting the top-K hits in LSH queries.
Deliverables
[ ] Implement top-k counting using IntIntHashMap
[ ] Demonstrate that it's a measurable speedup in benchmarks
Related Issues
So far it looks like the speedup is only noticeable in larger datasets. So this might require expanding benchmarking to datasets larger than Fashion Mnist.
Background
Breaking this out of https://github.com/alexklibisz/elastiknn/issues/160, specifically this comment: https://github.com/alexklibisz/elastiknn/issues/160#issuecomment-1826481362
I'd like to try using the IntIntHashMap from Lucene 9.x to decrease latency and memory usage for counting the top-K hits in LSH queries.
Deliverables
Related Issues
So far it looks like the speedup is only noticeable in larger datasets. So this might require expanding benchmarking to datasets larger than Fashion Mnist.