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

Brian Burkhalter bpb at openjdk.org
Mon Oct 13 22:33:28 UTC 2025


On Sat, 11 Oct 2025 06:53:40 GMT, Alan Bateman <alanb at openjdk.org> wrote:

>> Brian Burkhalter has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   8368633: Compare byte representations first then file keys; add micro
>
> test/micro/org/openjdk/bench/java/nio/file/ToRealPath.java line 52:
> 
>> 50:             files[i] = p;
>> 51:         }
>> 52:     }
> 
> You can use `@TearDown` to remove the files.
> 
> I think we'll need the benchmark to exercise some longer paths. Also I think it will have to exercise case sensitive, in this case the benchmark invokes toRealPath on "rEALpATH". That should give you a couple of scenarios that exercise both the first and second iterations.

Improved in 88b3341.

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

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


More information about the nio-dev mailing list