Dandandan opened a new pull request, #9583:
URL: https://github.com/apache/arrow-rs/pull/9583

   ## Which issue does this PR close?
   
   Closes #9579
   
   ## Rationale
   
   Currently, Snappy decompression uses `resize(len, 0)` which zero-fills the 
buffer before writing. Since Snappy will overwrite the entire region on 
success, this memset is wasted work.
   
   ## What changes are included in this PR?
   
   Write directly into spare capacity using `reserve()` + 
`spare_capacity_mut()` + `set_len()`, eliminating the unnecessary zero-fill.
   
   ## Are there any user-facing changes?
   
   No.
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)


-- 
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]

Reply via email to