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

Apply minor polish to ConfigUtils #18126

Merged
merged 1 commit into from
Jun 24, 2021
Merged

Conversation

geoand
Copy link
Contributor

@geoand geoand commented Jun 24, 2021

No description provided.

}
}
return output;
BuildTimeSysPropMapProducer buildTimeSysPropMapProducer = new BuildTimeSysPropMapProducer();
Copy link
Contributor Author

@geoand geoand Jun 24, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With this change we have fewer allocations as is evident by looking at how System.getProperties().entrySet() is implemented and also now use Map's forEach which is slightly optimized in the case of ConcurrentHashMap (which is the backing Map of Properties)

@@ -47,8 +47,6 @@
*
*/
public final class ConfigUtils {
private static final Logger log = Logger.getLogger("io.quarkus.config");
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was not used anywhere

@geoand geoand requested a review from radcortez June 24, 2021 10:52
@geoand geoand merged commit 659ef7a into quarkusio:main Jun 24, 2021
@quarkus-bot quarkus-bot bot added this to the 2.1 - main milestone Jun 24, 2021
@geoand geoand deleted the config-minor-polish branch June 24, 2021 15:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants