Joel Richard created SLING-4589: ----------------------------------- Summary: Performance: Read properties lazily in MergedValueMap Key: SLING-4589 URL: https://issues.apache.org/jira/browse/SLING-4589 Project: Sling Issue Type: Improvement Components: ResourceResolver Affects Versions: Resource Merger 1.2.8 Reporter: Joel Richard
About 4% of the rendering time is spent in MergedValueMap in ValueMapDecorator.putAll because the JcrPropertyMap has to be read fully before it can be added. Therefore, I would suggest to lazily read the properties in get(key) and merge them there. By the way, in my case 202 of 252 times the MergedValueMap is created only with a single value map. Discussion: http://mail-archives.apache.org/mod_mbox/sling-dev/201504.mbox/%3C5524D90F.7030009%40apache.org%3E -- This message was sent by Atlassian JIRA (v6.3.4#6332)