JingsongLi opened a new pull request, #8865:
URL: https://github.com/apache/paimon/pull/8865

   ## What changed
   
   - Replace `ZstdInputStream` and `ByteArrayInputStream` with zstd-jni's 
direct byte-array decompression API.
   - Preserve source and destination offsets and translate zstd failures to 
`BufferDecompressionException`.
   
   ## Why
   
   Block decompression is a hot path for compressed local lookup data. The 
stream-based implementation allocates wrapper objects and repeatedly calls 
`read`; the direct API decompresses the complete block into the caller-provided 
buffer in one native call.
   
   ## Validation
   
   - `mvn -q -pl paimon-common -Pfast-build -DwildcardSuites=none 
-Dtest=BlockCompressionTest test`
   - `mvn -q -pl paimon-common spotless:check -DskipTests`
   - `mvn -q -pl paimon-common -DskipTests compile`
   


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