Repository navigation
What's New in 1.5.0
Performance
- Faster copy walk & enumeration: Uses \details.getSize()\ instead of re-statting files on Gradle's single-threaded copy walk, \Files.walkFileTree\ with \BasicFileAttributes\ in \ParallelZipWriter.enumerate, primitive-packed \dosDateTimePacked, and lazy .pzip-*\ spill directory creation (\LazySpillDir).
- Pre-allocation native mmap sniff: Added \LibdeflateNative.sniffIncompressibleDirect\ so mmap-eligible large entries run the 64 KiB incompressibility probe and SIMD CRC-32 natively before allocating a heap output buffer.
- Writer & codec overhead reductions: Reuses local-header scratch \ByteBuffer\ and \ThreadLocal\ across large entries, switches \looksAlreadyCompressed\ to a first-byte \switch, and uses stack arrays for \compressBatch\ in JNI.
- Updated benchmarks (docs/BENCHMARKS.md): ~22.6x geometric-mean speedup over stock \Zip\ with \skipAlreadyCompressed=true\ and ~5.87x with \skipAlreadyCompressed=false\ across real-world Gradle builds (e.g. SonarQube -12.2%\ / -19.7%, Gradle -20.4%\ / -10.4%, Groovy -11.8%).
Also included since v1.4.1
- v1.4.2: Preserves Unix file permissions (\MADE_BY_UNIX, \st_mode) on extraction on Linux/macOS.
- v1.4.3: Locale-independent DOS timestamps using \java.time.LocalDateTime.
Full Changelog: v1.4.1...v1.5.0