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

Brian Burkhalter bpb at openjdk.org
Thu Oct 9 16:16:20 UTC 2025


On Thu, 9 Oct 2025 16:05:52 GMT, Alan Bateman <alanb at openjdk.org> wrote:

> It's both, I think the only way to avoid the stat call will be to compare the bytes (like the first check).

My thinking was that if `equalsIgnoreCase == false` then the file keys cannot be equal so there is no point checking them. If however `equalsIgnoreCase == true`, then the keys might or might not be equal and need to be checked. So the question is, if `equalsIgnoreCase == false` can the keys be equal?

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

PR Review Comment: https://git.openjdk.org/jdk/pull/27709#discussion_r2417287351


More information about the nio-dev mailing list