Skip to content
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

ResteasyProviderFactoryImpl: try to copy default exception mapping option from parent #3373

Conversation

stevenschlansker
Copy link
Contributor

@stevenschlansker stevenschlansker commented Dec 19, 2022

Filed issue: https://issues.redhat.com/browse/RESTEASY-3269

ResteasyProviderFactoryImpl: try to copy default exception mapping option from parent

Calling e.g. WebTarget.path ends up creating a new web target, which creates a new configuration, which creates a new provider impl, which looks up this option, which scans the classpath, which triggers disk IO and unzip'ing.

On a JFR profile of a load harness, the majority of allocations in a pure HTTP network request ends up being byte buffers loading classpath data to determine the state of this option, over and over again.

Can we try to copy the parent's setting instead?

…tion from parent, rather than looking it up every time

Calling e.g. `WebTarget.path` ends up creating a new web target, which creates a new configuration, which creates
a new provider impl, which looks up this option, which scans the classpath, which triggers disk IO and unzip'ing.

On a JFR profile of a load harness, the majority of allocations in a pure HTTP network request ends up being byte buffers
loading classpath data to determine the state of this option, over and over again.

Can we try to copy the parent's setting instead?
@jamezp
Copy link
Contributor

jamezp commented Dec 20, 2022

Closing as the JIRA is now closed RESTEASY-3269

@jamezp jamezp closed this Dec 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants