-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Avoid building a URI again and again in JarResource #39508
Conversation
Status for workflow
|
now checking @gsmet! |
adding @geoand too which is the one who wrote this one I'm mostly checking there's some evident performance reason why it shouldn't be the same (which doesn't seem the case , at a first look) |
Shouldn't be the same as what? |
I mean, it should be the same as it was before (from a semantic perspective), but i'm double-checking if there is any performance unexpected reason to not be the same (or better) |
So, in theory Line 165 in c25f1db
URI jarUri as instance field and can just chain jarPath.toUti().toURL() on it, to save retaining more heap and necessary and let URI to be Gc'd.I'm now checking if the allocated bytes are the same for the 2 methods. |
Have you looked at the call I removed? Because that was the whole purpose of this patch. Removing a call that we do a lot of times for the config stuff. |
uh @gsmet ! you mean https://github.com/quarkusio/quarkus/pull/39508/files#diff-49c6546297493b873346e7eb56a6f56a84964d13075679c56497b739674a97a0L113 ? |
TLDR for the getting-started quickstart I cannot see any measurable difference, because it seems The reason why the concat indy was visible, is that just a single call can trigger bytecode generation there, and that's why it was worthy to be fixed Said that I'm all in to simplify the existing code path anyway, unless @geoand got some reason why it was like that; which I'm not very familiar with |
OK, well, if it doesn't bring anything to the plate, we can close this. |
@franz1981 could you have a look at this change? It's related to #39447 .