XinyuZeng opened a new issue, #1430:
URL: https://github.com/apache/orc/issues/1430

   The default constructor of DataBuffer uses resize:
   
   
https://github.com/apache/orc/blob/764257a7fb7ade4de9fed3813c67cb36629d5b00/c%2B%2B/src/MemoryPool.cc#L54-L58
   
   which has extra initialization and free operations than reserve:
   
   
https://github.com/apache/orc/blob/764257a7fb7ade4de9fed3813c67cb36629d5b00/c%2B%2B/src/MemoryPool.cc#L81-L94
   
   However, in some use cases, for example, create a row batch 
(ColumnVectorBatch) and read data from ORC file, the resize operation is 
redundant and reserve should be enough. Not sure this is a problem but I found 
a significant amount of time will be spent on creating batch if the batch size 
is large.


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