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

Generate all mappings binding code #1061

Merged

Conversation

radcortez
Copy link
Member

@radcortez radcortez commented Dec 11, 2023

Rewrote @ConfigMapping internal implementation to remove the runtime introspection and runtime functions. Required information can be extracted by build time runtimes and fed directly into the builder to reduce runtime operations.

@radcortez radcortez marked this pull request as draft December 11, 2023 19:00
@radcortez radcortez force-pushed the mappings-all-build-time-generator branch 2 times, most recently from 407a4a6 to 2b46c01 Compare December 16, 2023 19:28
@radcortez radcortez marked this pull request as ready for review December 16, 2023 19:29
@radcortez radcortez force-pushed the mappings-all-build-time-generator branch 2 times, most recently from 83b6b15 to c408d1a Compare December 17, 2023 14:40
@radcortez
Copy link
Member Author

@dmlloyd this is quite a big PR, but I think it would be hard to make it incrementally. The main goal was to remove all the runtime introspection code and mapping functions and make everything generated instead. I plan to provide some performance measurements, but early testing seems to indicate an improvement in allocation and CPU time.

@radcortez radcortez force-pushed the mappings-all-build-time-generator branch from c408d1a to a2a1d3c Compare December 21, 2023 17:33
dmlloyd
dmlloyd previously approved these changes Dec 21, 2023
@radcortez radcortez force-pushed the mappings-all-build-time-generator branch from a2a1d3c to 8b0689d Compare December 22, 2023 11:28
@radcortez radcortez merged commit 51245a1 into smallrye:main Dec 22, 2023
8 checks passed
@github-actions github-actions bot added this to the 3.5.0 milestone Dec 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants