Skip to content

SLING-12217 Cache model implementation class lookups per ResourceResolver#88

Open
joerghoh wants to merge 3 commits into
masterfrom
SLING-12217-cache-implementation-lookups
Open

SLING-12217 Cache model implementation class lookups per ResourceResolver#88
joerghoh wants to merge 3 commits into
masterfrom
SLING-12217-cache-implementation-lookups

Conversation

@joerghoh

Copy link
Copy Markdown
Contributor
  • ModelAdapterFactory: cache the resolved ModelClass (or a negative-result sentinel) in the backing ResourceResolver.getPropertyMap(), as a bounded LRU map to avoid unbounded growth
  • AdapterImplementations: add requiresImplementationPickerLookup() to limit caching to the picker-based path.
  • ModelAdapterFactoryConfiguration: add cache_implementation_lookups (default true) and implementation_lookup_cache_size (default 100).
  • add test cases and run relevant existing tests with and without this feature enabled

…lver

- ModelAdapterFactory: cache the resolved ModelClass (or a negative-result
  sentinel) in the backing ResourceResolver.getPropertyMap(), as a bounded LRU
  map to avoid unbounded growth
- AdapterImplementations: add requiresImplementationPickerLookup() to limit
  caching to the picker-based path.
- ModelAdapterFactoryConfiguration: add cache_implementation_lookups (default
  true) and implementation_lookup_cache_size (default 100).
- add test cases and run relevant existing tests with and without this feature
  enabled
@sonarqubecloud

Copy link
Copy Markdown

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.

1 participant