The walks that look for dimension ends and lines to snap to, and the dimension lines a linear dimension lines up with, stop going through the remaining layers and siblings once they have read 20,000 objects.