RFR: 8321620: Optimize JImage decompressors

Glavo duke at openjdk.org
Mon Jan 15 22:43:29 UTC 2024


On Mon, 15 Jan 2024 22:16:13 GMT, Glavo <duke at openjdk.org> wrote:

> In the early development stage of JApp, I used 32-bit integers to store metadata such as resource size. But after using zstd to compress the metadata, I was surprised to find that storing them as 64-bit integers can actually reduce the file size for some test cases.

Sorry, I re-looked at the test data and found that I was wrong. Switching 32-bit fields to 64-bit still slightly increased the file size, although I still feel this is inconsequential.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/17405#issuecomment-1892838446


More information about the core-libs-dev mailing list