RFR: 8321591: (fs) Path.of(URI) performance (win)
Alan Bateman
alanb at openjdk.org
Thu Apr 3 12:35:03 UTC 2025
On Thu, 3 Apr 2025 01:07:34 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:
> Improve the performance of `WindowsPathParser.normalize` by using a `char` array to perform the normalization in place instead of appending to a `StringBuilder`. The `Result` inner class is also converted to a `record`.
I did a quick pass over this and eliminating the intermediate SB looks okay. I note that the JBS description says "Path.of(URI)" but the benchmark is Path.of(String).
-------------
PR Comment: https://git.openjdk.org/jdk/pull/24400#issuecomment-2775641464
More information about the nio-dev
mailing list