ShiKaiWi commented on issue #6276:
URL: https://github.com/apache/arrow-rs/issues/6276#issuecomment-2300352234
In the linked PR, I propose a new way to do resize without initialization:
```
fn resize_without_init(buf: &mut Vec<u8>, n: usize) {
if n > buf.capacity() {
buf.reserve(n - buf.len());
}
unsafe { buf.set_len(n) };
}
```
--
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]