ResteasyProviderFactoryImpl: try to copy default exception mapping option from parent #3373
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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?