[ 
https://issues.apache.org/jira/browse/SLING-5108?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14946635#comment-14946635
 ] 

ASF GitHub Bot commented on SLING-5108:
---------------------------------------

GitHub user joelrich opened a pull request:

    https://github.com/apache/sling/pull/105

    SLING-5108 - Various little performance improvements

    

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/joelrich/sling SLING-5108

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/sling/pull/105.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #105
    
----
commit 1a2c72a1ec89f12a23f953d50959756fedb77f60
Author: Joel Richard <[email protected]>
Date:   2015-10-07T09:46:52Z

    SLING-5108 - Various little performance improvements
    
    * Do not call hasProperty twice if the key is the same. In Oak, even if the 
property is cached, hasProperty is not for free because it performs a session 
operation with pre and post tasks.

commit 3bd06593a3d1d1e17454042a997a74f9505bea8c
Author: Joel Richard <[email protected]>
Date:   2015-10-07T09:55:46Z

    SLING-5108 - Various little performance improvements
    
    * Do not use String.format in getPath because this method is called very 
often

commit 74fd994d7a2cebe8bd7abcb409e4d42cc41a665a
Author: Joel Richard <[email protected]>
Date:   2015-10-07T09:45:19Z

    SLING-5108 - Various little performance improvements
    
    * Do not call getSimpleName() twice (because it is not just a cheap getter)

----


> Various little performance improvements
> ---------------------------------------
>
>                 Key: SLING-5108
>                 URL: https://issues.apache.org/jira/browse/SLING-5108
>             Project: Sling
>          Issue Type: Improvement
>          Components: API, Engine, JCR, Scripting
>            Reporter: Joel Richard
>              Labels: performance
>




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to