RFR: 8310837: Use ByteArrayLittleEndian in java.util.zip
Glavo
duke at openjdk.org
Sat Jun 24 02:37:06 UTC 2023
Using `ByteArrayLittleEndian` is simpler and faster.
`make test TEST="micro:java.util.zip.ZipFileOpen"`:
Benchmark (size) Mode Cnt Score Error Units
- ZipFileOpen.openCloseZipFile 512 avgt 15 39052.832 ± 107.496 ns/op
+ ZipFileOpen.openCloseZipFile 512 avgt 15 36275.539 ± 663.193 ns/op
- ZipFileOpen.openCloseZipFile 1024 avgt 15 77106.494 ± 4159.300 ns/op
+ ZipFileOpen.openCloseZipFile 1024 avgt 15 71955.013 ± 2296.050 ns/op
-------------
Commit messages:
- use ByteArrayLittleEndian in ZipUtils
Changes: https://git.openjdk.org/jdk/pull/14632/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=14632&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8310837
Stats: 43 lines in 2 files changed: 35 ins; 0 del; 8 mod
Patch: https://git.openjdk.org/jdk/pull/14632.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/14632/head:pull/14632
PR: https://git.openjdk.org/jdk/pull/14632
More information about the core-libs-dev
mailing list