Skip to content

Bypass SystemEnvironmentPropertySource.resolvePropertyName calls for configuration properties #44862

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

Closed
philwebb opened this issue Mar 24, 2025 · 0 comments
Assignees
Labels
type: enhancement A general enhancement
Milestone

Comments

@philwebb
Copy link
Member

Spring Framework has logic in SystemEnvironmentPropertySource.resolvePropertyName which is applied each time the property is accessed. For configuration properties, this logic should not be required since we directly calculate the mappings. If we obtain system environment properties directly from the source, we will potentially save one String.toUpperCase call, three String.replace calls and four calls to access the property.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

1 participant