benwtrent commented on code in PR #14426: URL: https://github.com/apache/lucene/pull/14426#discussion_r2023094888
########## lucene/core/src/java/org/apache/lucene/codecs/lucene102/Lucene102BinaryQuantizedVectorsReader.java: ########## @@ -257,6 +257,15 @@ public long ramBytesUsed() { return size; } + @Override + public long offHeapBytes() { + long bytes = 0L; + for (var field : fields.values()) { + bytes += field.vectorDataLength(); + } + return bytes; + } + Review Comment: @ChrisHegarty yeah, I am not sure :(. I think this is a nice first step, but the goal here is to signal the off-heap size so that the user can determine if they have "enough" off-heap for speed. But, then they need to know how to actually calculate what "enough" is for their typical search case for that format. Not ideal, but maybe its enough for a step 1. -- 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