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

Improve config customizer performance #2416

Merged
merged 1 commit into from Jun 30, 2023

Conversation

hgschmie
Copy link
Contributor

Allow config customizers that do not need the config object itself to
create internal state at metadata creation time and cache that state as
part of the extension type metadata. This moves the creation of a
class (and potentially other expensive operations) away from the
invocation of extension methods.

@hgschmie
Copy link
Contributor Author

any chance you can test this before merging it? I want to make sure it actually has benefits.

Allow config customizers that do not need the config object itself to
create internal state at metadata creation time and cache that state as
part of the extension type metadata. This moves the creation of a
class (and potentially other expensive operations) away from the
invocation of extension methods.
@sonarcloud
Copy link

sonarcloud bot commented Jun 30, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@hgschmie hgschmie merged commit c247ce5 into jdbi:master Jun 30, 2023
36 checks passed
@hgschmie hgschmie deleted the sqlobject-performance branch June 30, 2023 23:51
hgschmie added a commit to hgschmie/jdbi that referenced this pull request Jul 1, 2023
Apply the patterns from jdbi#2416 to all the remaining configurers.
hgschmie added a commit to hgschmie/jdbi that referenced this pull request Jul 1, 2023
Apply the patterns from jdbi#2416 to all the remaining configurers.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants