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