uschindler commented on PR #12460:
URL: https://github.com/apache/lucene/pull/12460#issuecomment-1715550666

   To save more memory copies, the codec may use a slice from the underlying 
IndexInput directly to support both access apis. All file pointer checks would 
then be performed by the low level JVM intrinsics used my 
MemorySegmentIndexInput's slices. If you use those views and not let them 
escape the current method, the GC pressure isn't there (be careful: Profilers 
show them as escape analysis no longer works when the profiler prevents 
inlining).
   
   At some point we must anyways go away from the reusing of instances and move 
Lucene to the shortliving immutable instances used by modern JDK APIs. Escape 
analysis works fine, if you have simple apis.


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