We maintain a registry of elements with an anchor-name so once they are referenced for anchor positioning, we can find them with an O(1) lookup instead of traversing the entire DOM tree.