On Mon, 3 Apr 2023 17:16:26 GMT, Andrey Turbanov <aturba...@openjdk.org> wrote:
> `LinkedHashMap<IndexNode, IndexNode>` `ZipFileSystem.inodes` contains only > non-null values. It means instead of separate `containsKey`+`get` calls, we > can use single `LinkedHashMap.get` call and then compare result with `null`. > Result code is a bit simpler and faster. > > Testing: Linux x64 `java/nio`, `jdk/nio` This pull request has now been integrated. Changeset: 50d73352 Author: Andrey Turbanov <aturba...@openjdk.org> URL: https://git.openjdk.org/jdk/commit/50d73352068f588cf6db29acb56e21b0412ab768 Stats: 3 lines in 1 file changed: 0 ins; 0 del; 3 mod 8305696: (zipfs) Avoid redundant LinkedHashMap.containsKey call ZipFileSystem.makeParentDirs Reviewed-by: alanb, jpai, lancea ------------- PR: https://git.openjdk.org/jdk/pull/13304