Replies: 1 comment 4 replies
-
The major overhead associated with ByteArray is the allocation, not the atomics that surround it. For use-cases reading byte arrays and needing performance I would strongly encourage using the arrow interface, as that allows sharing a single allocation across an entire batch of values |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The current representation for ByteArray is based on the Bytes crate which supports maintains atomic pointers for thread safety. However, it might be an overkill for use cases where thread safety is not needed, as it adds unnecessary overhead. Does it make sense to provide or is there any alternative of the Bytes for the ByteArray?
Beta Was this translation helpful? Give feedback.
All reactions