To find differences, compare roots and descend only into subtrees whose hashes differ. With few differences you compare a handful of nodes instead of every key.