29 ms·
What does "needed" mean in "I mostly haven't needed to memoize any time I can remember"? Does it mean that that your manager/team lead has never asked you to?
by fouric 5y ago
What does "needed" mean in "I mostly haven't needed to memoize any time I can remember"?
Does it mean that that your manager/team lead has never asked you to? Or that your production builds always hit some performance benchmark? Or that your development builds hit that benchmark? Or that you never noticed a qualitative slowdown in your development environment? Or something else?
"Needed" is a word you gotta define when you start talking about performance, unlike discussing functional correctness.
- eatonphil 5y agoThere was never a slowness in the apps I've worked on that came down to requiring memoization in React versus other basic things like doing pagination or other ways of rendering only things that would be displayed at the time for the user.
- TheCoelacanth 5y ago> pagination or other ways of rendering only things that would be displayed at the time for the user Well, yes, those are alternate ways to deal performance problems, but they are not necessarily any easier than adding a bit of memoization.
- eatonphil 5y agoNo those solutions (and problems) were completely tangent to adding memoization. My point is that I've never seen a performance issue where non-memoization was the problem.