Skip to content

8353923: (fs) Further improve performance of URI -> Path conversion (win) #24638

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

bplb
Copy link
Member

@bplb bplb commented Apr 14, 2025

If the path portion of a URI permits, then simply replace all '\\' with '/' instead of completely parsing the path.


Progress

  • Change must be properly reviewed (1 review required, with at least 1 Reviewer)
  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue

Issue

  • JDK-8353923: (fs) Further improve performance of URI -> Path conversion (win) (Bug - P4)

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/24638/head:pull/24638
$ git checkout pull/24638

Update a local copy of the PR:
$ git checkout pull/24638
$ git pull https://git.openjdk.org/jdk.git pull/24638/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 24638

View PR using the GUI difftool:
$ git pr show -t 24638

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/24638.diff

Using Webrev

Link to Webrev Comment

@bridgekeeper
Copy link

bridgekeeper bot commented Apr 14, 2025

👋 Welcome back bpb! A progress list of the required criteria for merging this PR into master will be added to the body of your pull request. There are additional pull request commands available for use with this pull request.

@openjdk
Copy link

openjdk bot commented Apr 14, 2025

❗ This change is not yet ready to be integrated.
See the Progress checklist in the description for automated requirements.

@openjdk openjdk bot added the rfr Pull request is ready for review label Apr 14, 2025
@openjdk
Copy link

openjdk bot commented Apr 14, 2025

@bplb The following label will be automatically applied to this pull request:

  • nio

When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing list. If you would like to change these labels, use the /label pull request command.

@openjdk openjdk bot added the nio nio-dev@openjdk.org label Apr 14, 2025
@mlbridge
Copy link

mlbridge bot commented Apr 14, 2025

Webrevs

@bplb
Copy link
Member Author

bplb commented Apr 14, 2025

Benchmark testing of URI-to-Path conversion on Windows gives these results:

URI Throughput Change (%)
file:/C:/Users/bpb/git/foo/bar/classes/gus/dir/ +63.96
file:/C:/Users/bpb/git/foo/bar/classes/gus/dir +61.19
file:/C:/Users/bpb/git/foo/bar/classes//gus/dir/ -4.19
file:/C:/Users/bpb/git/foo/bar/classes//gus/dir -2.21

For URIs having a path to which the optimization applies, the throughput increase is nearly two-thirds. For URIs which are not so amenable, there is a small throughput decrease of less than 5%. URIs which have a UNC path component are not affected.

So the question is whether a substantial throughput increase for susceptible absolute drive paths is worth a small but non-zero throughput decrease for other path components.

@AlanBateman
Copy link
Contributor

Is it possible to add a JMH benchmark to the PR?

@bplb
Copy link
Member Author

bplb commented Apr 15, 2025

Is it possible to add a JMH benchmark to the PR?

Yes, I was intending to do that.

@bridgekeeper
Copy link

bridgekeeper bot commented May 13, 2025

@bplb This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 weeks passes without any activity. To avoid this, simply issue a /touch or /keepalive command to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration!

@bplb
Copy link
Member Author

bplb commented May 13, 2025

continue;

@bridgekeeper
Copy link

bridgekeeper bot commented Jun 10, 2025

@bplb This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 weeks passes without any activity. To avoid this, simply issue a /touch or /keepalive command to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration!

@bplb
Copy link
Member Author

bplb commented Jun 11, 2025

/touch

@openjdk
Copy link

openjdk bot commented Jun 11, 2025

@bplb The pull request is being re-evaluated and the inactivity timeout has been reset.

@bridgekeeper
Copy link

bridgekeeper bot commented Jul 9, 2025

@bplb This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 weeks passes without any activity. To avoid this, simply issue a /touch or /keepalive command to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
nio nio-dev@openjdk.org rfr Pull request is ready for review
Development

Successfully merging this pull request may close these issues.

2 participants