You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Joel Richard (JIRA)" <ji...@apache.org> on 2015/04/08 16:01:12 UTC
[jira] [Created] (SLING-4589) Performance: Read properties lazily
in MergedValueMap
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)