jtibshirani commented on PR #792: URL: https://github.com/apache/lucene/pull/792#issuecomment-1099651418
> I worry that off-heap will case latency compared with loading all to memory. Doesn't your PR already move the ordToDoc data structure off-heap? `DirectMonotonicReader` reads directly from the index input (`RandomAccessIndexInput`). My suggestion is to follow the pattern in `Lucene90DocValuesProducer#getNumeric`. We would load `DirectMonotonicReader.Meta` when creating the `FieldEntry`, and then create a new `DirectMonotonicReader` when the `search` or `getVectorValues` methods are called. -- 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