Re: [I] Speedup take_bytes by precalculating capacity [arrow-rs]
alamb commented on issue #7432:
URL: https://github.com/apache/arrow-rs/issues/7432#issuecomment-2864295004
`label_issue.py` automatically added labels {'arrow'} from #7422
--
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]
Re: [I] Speedup take_bytes by precalculating capacity [arrow-rs]
Dandandan closed issue #7432: Speedup take_bytes by precalculating capacity URL: https://github.com/apache/arrow-rs/issues/7432 -- 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]
[I] Speedup take_bytes by precalculating capacity [arrow-rs]
Dandandan opened a new issue, #7432: URL: https://github.com/apache/arrow-rs/issues/7432 **Is your feature request related to a problem or challenge? Please describe what you are trying to do.** We can precalculate the capacity of the value in `take_bytes` based on the offsets, while building the offsets. This is faster than letting the buffer allocate for us. As a bonus, we also save some memory by precisely allocating the resulting buffer, instead of overallocating. **Describe the solution you'd like** **Describe alternatives you've considered** **Additional context** -- 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]
