mikemccand commented on a change in pull request #758: LUCENE-8833: Add a
#load() method to IndexInput to allow preloading file content into physical
memory
URL: https://github.com/apache/lucene-solr/pull/758#discussion_r299549350
##########
File path:
lucene/core/src/java/org/apache/lucene/codecs/blocktree/FieldReader.java
##########
@@ -98,7 +97,7 @@
isFSTOffHeap = ((this.docCount != this.sumDocFreq) ||
openedFromWriter == false);
break;
case AUTO:
- isFSTOffHeap = ((this.docCount != this.sumDocFreq) ||
openedFromWriter == false) && indexIn instanceof ByteBufferIndexInput;
+ isFSTOffHeap = ((this.docCount != this.sumDocFreq) ||
openedFromWriter == false) && indexIn.load(); // NOCOMMIT - should we do this
should we do it all the time?
Review comment:
+1
Extra space after the `&&`?
----------------------------------------------------------------
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:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]