uschindler commented on code in PR #13381:
URL: https://github.com/apache/lucene/pull/13381#discussion_r1606111128


##########
lucene/core/src/java21/org/apache/lucene/store/MemorySegmentIndexInput.java:
##########
@@ -57,6 +58,7 @@ abstract class MemorySegmentIndexInput extends IndexInput 
implements RandomAcces
   MemorySegment
       curSegment; // redundant for speed: segments[curSegmentIndex], also 
marker if closed!
   long curPosition; // relative to curSegment, not globally
+  int consecutivePrefetchHitCount;

Review Comment:
   Ok. Let's do this later.
   
   I agree with your comment. My idea was: When we inherit the counter value to 
clones, the CFS problem is no problem as the CFS child inputs are opened early 
and counter is zero at that time. But later clones on index files are opened 
per thread or similar, so best is to inherit the counter. 



-- 
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

Reply via email to