RFR: 8368633: (fs) Path.toRealPath(NOFOLLOW_LINKS) very slow on macOS

Brian Burkhalter bpb at openjdk.org
Thu Oct 9 00:06:30 UTC 2025


On Wed, 8 Oct 2025 23:59:53 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:

> Try to avoid checking file keys for all entries by first attempting `Path.compareTo` and `String.equalsIgnoreCase`.

For the test case included in the issue description, the proposed change is five times faster than the existing implementation.

The test is only changed to direct print statements to `stderr` so as to interleave with JUnit output.

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

PR Comment: https://git.openjdk.org/jdk/pull/27709#issuecomment-3383597575


More information about the nio-dev mailing list