You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@orc.apache.org by "wgtmac (via GitHub)" <gi...@apache.org> on 2023/03/11 14:04:46 UTC

[GitHub] [orc] wgtmac commented on issue #1430: [C++] DataBuffer Constructor (or a non default constructor) uses reserve instead of resize?

wgtmac commented on issue #1430:
URL: https://github.com/apache/orc/issues/1430#issuecomment-1464919055

   `reserve` only allocates the memory but does not call constructor of the objects of the buffer.  This is what `resize` does and will be undefined behavior if not doing so. Could you share your use case or some profiling data (e.g. flame graph) so we can discuss optimization opportunities in detail? @XinyuZeng  


-- 
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-unsubscribe@orc.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org