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

Alan Bateman alanb at openjdk.org
Tue Oct 14 09:32:58 UTC 2025


On Mon, 13 Oct 2025 22:33:25 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`.
>
> Brian Burkhalter has updated the pull request incrementally with one additional commit since the last revision:
> 
>   8368633: Compare keys using a second DirectoryStream; improve micro

So I think this version is okay. The catching of UnixException needs to be re-examined but it pre-dates the changes in this PR.

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

Marked as reviewed by alanb (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/27709#pullrequestreview-3334709454


More information about the nio-dev mailing list