Closed kwohlfahrt closed 4 years ago
@tdawes: I don't know how to actually test the performance of react rendering in an automated way. I've included the benchmark example for now so we can at least do some manual testing.
We might want to move the benchmark examples into its own directory. examples/ should really be documentation (we should probably get rid of a few of the less useful examples).
Agree with @tdawes in principle, but not in scope here. I'll merge when tests pass.
Previously, react did some work immediately after setState was called. If a single action triggered state changes in many elements, this caused updates to be quite slow - up to 1000x vs Redux.
unstable_batchedUpdates is used by Redux to avoid this: https://react-redux.js.org/api/batch#references.