RFR: 8339874: Avoid duplicate checking of trailing slash in ZipFile.getZipEntry [v4]

Eirik Bjørsnøs eirbjo at openjdk.org
Wed Sep 11 07:23:40 UTC 2024


On Tue, 10 Sep 2024 19:30:52 GMT, Lance Andersen <lancea at openjdk.org> wrote:

> If this does not make a huge performance difference, I would keep this together with the init of elen and clen on line 692.

I verified this does not cause a regression, so moved the `nlen` read up on the common path.

See also my comment to @cl4es re sequential memory access.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/20939#discussion_r1753365711


More information about the core-libs-dev mailing list