fix(jsx/dom): fix performance issue with adding many new node listings (#3205)
Before adoption: this commit came in with the history the project adopted, so no landing records it.
* fix(jsx/dom): fix performance issue with adding many new node listings * First time rendering does not need to look for elements from child nodes ** Avoid unnecessary checks with `node.pP`. * Sibling elements are always searched, so there is no need for a for loop. ** Need only `findInsertBefore(node.vC[0])` * test(jsx/dom): add test for performance
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
2 files+23 added−18 removed
- tests:+18 added−0 removed
- other:+5 added−18 removed