dillon1000/react

Commit

Fix severe perf problems in component tree devtool (#6770)

One of the ReactMultiChildText tests renders 2145 roots (and even more components) and unmounts none of them. Now we don't loop through them all a bunch of times so the test takes 20 seconds instead of 60.

We should clean up instantiateReactComponent somehow so that the onSetDisplayName call isn't produced for the TopLevelWrapper, which should allow us to just store an array of unmountedIDs instead of a hash map so we at least don't have double maps. This change mirrors the old logic though.

Reviewers: @gaearon, @sebmarkbage
Browse files
Changed paths1 file
First-parent comparison
M src/isomorphic/devtools/ReactComponentTreeDevtool.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…