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

JsonbContextResolverProvider high CPU usage #675

Closed
czenczl opened this issue Jul 2, 2024 · 0 comments · Fixed by #702
Closed

JsonbContextResolverProvider high CPU usage #675

czenczl opened this issue Jul 2, 2024 · 0 comments · Fixed by #702
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@czenczl
Copy link
Member

czenczl commented Jul 2, 2024

Is your feature request related to a problem? Please describe.
The usage of JsonbContextResolverProvider can cause high CPU usage because every time we need to use dto-json conversion, the underlying JSON-B implementation (such as Yasson) always scans the DTO types.

Describe the solution you'd like
Use CDI or static to prevent instantiation on every call: JsonbUtil.

Additional context
We should add simple customization capabilities to the project to allow overriding this config

@czenczl czenczl added the enhancement New feature or request label Jul 2, 2024
@czenczl czenczl added this to the coffee-2.8.0 milestone Jul 2, 2024
@rombow rombow linked a pull request Jul 15, 2024 that will close this issue
@speter555 speter555 modified the milestones: coffee-2.8.0, coffee-2.9.0 Aug 14, 2024
gabor-balazs added a commit that referenced this issue Aug 28, 2024
gabor-balazs added a commit that referenced this issue Aug 28, 2024
bucherarnold added a commit that referenced this issue Oct 1, 2024
@bucherarnold bucherarnold linked a pull request Oct 2, 2024 that will close this issue
4 tasks
@bucherarnold bucherarnold self-assigned this Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
3 participants