iverase opened a new pull request, #12581:
URL: https://github.com/apache/lucene/pull/12581

   Currently, the only way to handle binary data on stored fields is via byte 
arrays (wrapped as BytesRef). THis means we are allocating a new byte array 
everytime we read the value which is wasteful and it can be problematic as 
those arrays can be humongous and add pressure to the GC. 
   
   In this PR we proposed to add the possibility to read / write binary stored 
values using a DataInput and the number of bytes. By default the 
implementations will allocate those bytes in a newly created byte array and 
call the already existing method. 
   
   This should speed up the merging of stored fields as we are not using an 
intermediate data structure any longer and allow implementoirs to read the 
binary fields without having to allocate a byte array.
   
   closes https://github.com/apache/lucene/issues/12556 
    


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