| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
When not using STORED entries use a BufferedOutputStream to avoid lots of small writes to the file system. Testing this with a 300mb jar build I see the total build time going from 40s to 30s. Note that it is not possible to do this with STORED entries as the implementation requires a RandomAccessFile to update the CRC after write.
There was a problem hiding this comment.
This PR improves ZIP file creation performance by using BufferedOutputStream for non-STORED compression methods. The change conditionally wraps the file output stream with a buffer to reduce system call overhead during ZIP file writing.
Key changes:
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| DefaultZipCompressor.groovy | Adds conditional buffering logic to improve ZIP writing performance for non-STORED entries |
| README.md | Documents the performance improvement in the changelog |
Sorry, something went wrong.
…ernal/DefaultZipCompressor.groovy
### What changes were proposed in this pull request? This PR aims to upgrade `com.gradleup.shadow` to 8.3.9. ### Why are the changes needed? To bring the latest bug fixed versions. - https://github.com/GradleUp/shadow/releases/tag/8.3.9 - GradleUp/shadow#1579 - https://github.com/GradleUp/shadow/releases/tag/8.3.8 - GradleUp/shadow#1493 - GradleUp/shadow#1488 - https://github.com/GradleUp/shadow/releases/tag/8.3.7 - GradleUp/shadow#1470 ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Pass the CIs. ### Was this patch authored or co-authored using generative AI tooling? No. Closes #469 from dongjoon-hyun/SPARK-55102. Authored-by: Dongjoon Hyun <dongjoon@apache.org> Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
| Back | FazBrowse Home | New Git URL |
When not using STORED entries use a BufferedOutputStream to avoid lots of small writes to the file system.
Testing this with a 300mb jar build I see the total build time going from 40s to 30s.
Note that it is not possible to do this with STORED entries as the implementation requires a RandomAccessFile to update the CRC after write.