-
Notifications
You must be signed in to change notification settings - Fork 49
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
Consider Refactor JWTAuthContextInfoProvider #243
Comments
What will it give us ?
for 3.0.0 this can indeed be done where possible
Not sure it is worth it, it is initialized once, and not affecting the requests. Ease of testing may be, but we can just easily add few more static factory methods. There are cons and pros but we do it everywhere really, in Quarkus, here, elsewhere, I'd rather us spending time on something else... |
I think your idea of delaying the conversion was very interesting, this is where we can definitely get some minor performance improvement |
Hi, can I help you with this task? |
Hi guys! I don't know if you still interest on doing this but I have taken the chance with that (just for fun). |
Thanks @ejba :) Let us have a look! |
It's not ready for review yet, still have to do some tests. Also, I am not sure that I understood your idea. |
@radcortez I will need you help here, if you don't mind. :)
Once CDI injection removed, where should it call the Config API? In getters? How can I measure this expected performance improvement? |
@ejba I'm not sure this needs to be done, if it needs to be done at all.
As I said in the other PR, I'm finding it easy to look at the concrete property name
This will be good for
As commented above, I'm not sure it is needed. The performance gains if any will be negligible, using the programmatic API is more verbose. |
Hi @ejba @radcortez, Thanks |
Hi @sberyozkin, thanks for your feedback. I have been working on this but didn't the PR because I felt a bit lost with the description once I don't have the big picture of the impacts and consequences behind it. Could you have a look at what I did? If you see something that worths the trouble, I can extract that and make a dedicated PR of it. link |
Hi @ejba
with
against https://github.com/smallrye/smallrye-jwt/tree/mpjwt12. IMHO the pervasive changes to do with the constants and removing the injection altogether are not required at this point of time. Thanks |
Ok, I can do that. |
@ejba Hi, sorry, missed it, no, lets get rid of them as well for all the properties which have a default value |
Hey, I'll do a quick update early next year to remove the Optionals where the default values are available. |
Hey @radcortez @ejba Let me close this one - #379 did some clean up so I suppose we can resolve it and target some concrete improvements with the new issues :-), thanks |
Somehow #379 did not get in onto RC2 so I'll make RC3 early next week - it shows |
that was merged again |
We should consider to clean up
JWTAuthContextInfoProvider
.The text was updated successfully, but these errors were encountered: