Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-2461

Optimize access to pending _lastRev updates

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.0.7, 1.0.8, 1.0.9, 1.0.10, 1.0.11
    • Fix Version/s: 1.0.12
    • Component/s: core
    • Labels:
      None

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              mreutegg Marcel Reutegger
              Reporter:
              mreutegg Marcel Reutegger
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: