wForget opened a new pull request, #2815: URL: https://github.com/apache/uniffle/pull/2815
### What changes were proposed in this pull request? Pass the existing `readBuffer` and filtered segments from `ShuffleReadClientImpl` directly to `DecompressionWorker`, avoiding a second buffer conversion and the temporary `ShuffleDataResult`. Each decompression task continues using `duplicate()` to maintain independent positions and limits. ### Why are the changes needed? With overlapping decompression enabled, the reader and decompression worker both call `getDataBuffer()` on the same underlying managed buffer. When a `CompositeByteBuf` requires consolidation, each call allocates a new heap buffer and copies the entire batch. Reusing the existing buffer eliminates one full-batch allocation and copy, reducing allocation and GC pressure. Fix: #2814 ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? -- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
