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

Brian Burkhalter bpb at openjdk.org
Thu Oct 9 15:28:51 UTC 2025


On Thu, 9 Oct 2025 09:41:42 GMT, Alan Bateman <alanb at openjdk.org> wrote:

> Have you considered adding a JMH benchmark for exercising toRealPath and toRealPath(NOFOLLOW_LINKS)?

Yes, but I didn't do it. It should be straightforward to add.

> If the name and element are not equal then I think it has to use file key.

Do you intend that file key alone should be used here and drop toString? Is it possible that equalsIgnoreCase returns false when the file keys are equal?

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

PR Comment: https://git.openjdk.org/jdk/pull/27709#issuecomment-3386267503
PR Review Comment: https://git.openjdk.org/jdk/pull/27709#discussion_r2417129911


More information about the nio-dev mailing list