• Phillip Webb's avatar
    Add ConfigurationPropertyCaching support · 7afd25fc
    Phillip Webb authored
    Add a `ConfigurationPropertyCaching` utility interface that can be
    used to control the property source caching.
    
    Prior to this commit, a `ConfigurationPropertySource` that was backed
    by a mutable `EnumerablePropertySource` would need to call the
    `getPropertyNames()` method each time a property was accessed. Since
    this this operation can be expensive, we now provide a way to cache
    the results for a specific length of time.
    
    This commit also improves the performance of immutable property sources
    by limiting the number of candidates that need to be searched.
    Previously, all mapped names would be enumerated. Now, mappings are
    grouped by `ConfigurationPropertyName`. This is especially helpful when
    the `ConfigurationPropertyName` isn't mapped at all since the hash based
    map lookup will be very fast and the resulting mappings will be empty.
    
    Closes gh-20625
    7afd25fc
Name
Last commit
Last update
.github Loading commit data...
buildSrc Loading commit data...
ci Loading commit data...
eclipse Loading commit data...
git/hooks Loading commit data...
gradle/wrapper Loading commit data...
idea Loading commit data...
spring-boot-project Loading commit data...
spring-boot-tests Loading commit data...
src/checkstyle Loading commit data...
.editorconfig Loading commit data...
.gitignore Loading commit data...
CODE_OF_CONDUCT.adoc Loading commit data...
CONTRIBUTING.adoc Loading commit data...
LICENSE.txt Loading commit data...
README.adoc Loading commit data...
SUPPORT.adoc Loading commit data...
build.gradle Loading commit data...
gradle.properties Loading commit data...
gradlew Loading commit data...
gradlew.bat Loading commit data...
settings.gradle Loading commit data...