[
https://issues.apache.org/jira/browse/SLING-4551?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14386340#comment-14386340
]
Joel Richard commented on SLING-4551:
-------------------------------------
[~cziegeler], I have reported this one because I know that it's very easy to
fix. If we find just ten other little mistakes like this, then we gain already
quite a bit.
> Performance: Use static logger in ResourceIterator
> --------------------------------------------------
>
> Key: SLING-4551
> URL: https://issues.apache.org/jira/browse/SLING-4551
> Project: Sling
> Issue Type: Improvement
> Components: ResourceResolver
> Affects Versions: Resource Resolver 1.2.4
> Reporter: Joel Richard
> Priority: Minor
> Labels: performance
> Fix For: Resource Resolver 1.2.6
>
>
> The logger lookup in
> org.apache.sling.resourceresolver.impl.helper.ResourceIterator adds 1%
> rendering overhead because the logger variable is an instance variable and
> the class is used very often. This can be avoided simply by using a static
> logger.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)