prtkgaur commented on code in PR #48345:
URL: https://github.com/apache/arrow/pull/48345#discussion_r2600528878
##########
cpp/src/arrow/util/small_vector.h:
##########
@@ -457,6 +457,22 @@ class StaticVectorImpl {
}
}
+ // Unsafe resize without initialization - use only when you will immediately
+ // overwrite the memory (e.g., before memcpy). Only safe for POD types.
+ void UnsafeResize(size_t n) {
Review Comment:
Using this over resize gave us around 2-3% performance improvement
--
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]