You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Michael Dürig (JIRA)" <ji...@apache.org> on 2013/09/23 13:44:02 UTC

[jira] [Updated] (OAK-671) Optimise TreeImpl.getBaseState()

     [ https://issues.apache.org/jira/browse/OAK-671?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Dürig updated OAK-671:
------------------------------

    Labels: perfomance  (was: )
    
> Optimise TreeImpl.getBaseState() 
> ---------------------------------
>
>                 Key: OAK-671
>                 URL: https://issues.apache.org/jira/browse/OAK-671
>             Project: Jackrabbit Oak
>          Issue Type: Sub-task
>            Reporter: Michael Dürig
>            Assignee: Michael Dürig
>            Priority: Minor
>              Labels: perfomance
>             Fix For: 0.7
>
>
> Currently {{TreeImpl.getBaseState()}} calculates the base state of the tree on the fly on each call. As it turns out this method ends up being called by nearly every JCR method call. As recalculation is somewhat expensive since it recursively needs to calculate the base states of all parent trees, an optimisation would be to pre calculate the base state on instance creation.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira