Add caching mechanism to DefaultsOnlyConfigurationService for default values
Open
info-needed
- Dominant language
- TypeScript
- Stars
- 193k
- Forks
- 42.4k
- PR merge metrics
- PR metrics pending
Description
## Feature Description
To improve performance and reduce redundant lookups on the global configuration registry, we can introduce a simple Map-based caching mechanism inside `DefaultsOnlyConfigurationService`.
## Proposed Changes
- Added a private `_defaultValueCache = new Map()` property.
- Created a `_getCachedDefaultValue` helper method to store and retrieve default values efficiently.
- Updated `getConfig`, `inspectConfig`, and `getExperimentBasedConfig` to utilize the cached default values.
Contributor guide
Assessment
This issue has not been assessed yet.