We should find calls on findNthChild(), which is O(N), and replace them with constant-time function calls (maybe rightSibling()).
For example, we should replace the findNthChild() calls in translateUpdate().
We should find calls on findNthChild(), which is O(N), and replace them with constant-time function calls (maybe rightSibling()).
For example, we should replace the findNthChild() calls in translateUpdate().