2 ms·
>Well, I know that on one tool we saw a 20x or so speedup compared to using Redux. This is because Redux is O(n) in that it has to ask each connected component
by diffrinse 6y ago
>Well, I know that on one tool we saw a 20x or so speedup compared to using Redux. This is because Redux is O(n) in that it has to ask each connected component whether it needs to re-render, whereas we can be O(1).
Don't I get the same perf with selectors?
- davidmccabe 6y agoI could be mistaken but I think that you still have to do a shallow compare on the connected props of every component.
- diffrinse 6y agoNah, you're completely correct