coderex2522 opened a new pull request, #1394:
URL: https://github.com/apache/orc/pull/1394

   ### What changes were proposed in this pull request?
   This pr provides the API to set the initial buffer capacity of  
BufferedOutputStream.
   
   ### Why are the changes needed?
   It's convenient for users to adjust the buffer size of the 
BufferedOutputStream according to the written data.
   
   ### How was this patch tested?
   Add the WriterTest.setOutputBufferCapacity to test different buffer capacity 
of BufferedOutputStream.
   In addition, I did a simple test similar to this 
[issue](https://github.com/apache/orc/issues/1240)
   
   |    PeakMem     | BufferCapacity = 1MB |  BufferCapacity = 64KB |
   | ------------- | --- | ------------------------------- |
   |10000 Fields  | 38.96GB  | 11.48GB |
   |1000 Fields    | 3.92GB | 1.17GB |
   |100 Fields    | 0.41GB | 0.13GB |
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to