Hacker News new | ask | show | jobs
by diffrinse 2228 days 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?

1 comments

I could be mistaken but I think that you still have to do a shallow compare on the connected props of every component.
Nah, you're completely correct