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 "Marcel Reutegger (JIRA)" <ji...@apache.org> on 2015/01/29 10:43:34 UTC

[jira] [Resolved] (OAK-2461) Optimize access to pending _lastRev updates

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

Marcel Reutegger resolved OAK-2461.
-----------------------------------
    Resolution: Fixed

Fixed in 1.0 branch: http://svn.apache.org/r1655561

> Optimize access to pending _lastRev updates
> -------------------------------------------
>
>                 Key: OAK-2461
>                 URL: https://issues.apache.org/jira/browse/OAK-2461
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>          Components: core
>    Affects Versions: 1.0.7, 1.0.8, 1.0.9, 1.0.10, 1.0.11
>            Reporter: Marcel Reutegger
>            Assignee: Marcel Reutegger
>            Priority: Minor
>             Fix For: 1.0.12
>
>
> With OAK-1768 the UnsavedModifications are backed by MapDB. The check if the map is empty in getPaths() can be optimized by calling getSize() instead. The isEmpty() implementation seeks for the first element in the BTree, while getSize() simply looks up the counter.
> This only applies to the 1.0 branch because usage of MapDB was later removed in trunk. See OAK-2324.



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