Smith-Cruise commented on issue #1430:
URL: https://github.com/apache/orc/issues/1430#issuecomment-1884198165

   > > I faced the same problem, DataBuffer's constructor is too heavy. 
![kernel2](https://private-user-images.githubusercontent.com/18729228/293842708-a7ca0ad7-7230-43ee-8912-dc2877b0f664.svg?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MDQ2OTMxMDYsIm5iZiI6MTcwNDY5MjgwNiwicGF0aCI6Ii8xODcyOTIyOC8yOTM4NDI3MDgtYTdjYTBhZDctNzIzMC00M2VlLTg5MTItZGMyODc3YjBmNjY0LnN2Zz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDAxMDglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwMTA4VDA1NDY0NlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWNkODZlOTE5NWVmMDYxYmQzMjk0MzY4YWQ2MjA1MmNmMWQ5ZGIxMGNjZmU5YmQ1NzRhMjYyY2M0ZjZiNTE0OGEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.U334OIzSsoyWyCawpBQeBteuUS5TlevEIKMUnVF0xkA)
   > > Lot's of time waste in memset()
   > 
   > Do you want to submit a fix? @Smith-Cruise
   
   Actually, i didn't know how to fix it. I've tried using `reserve()` instead 
of `resize()`, but it will sometimes cause decompression error. Just looks like 
that `memset()` is necessary.


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