25 ms·
Memoizing everything might be hurting more than helping your apps performance. I’ve built a few different apps with RN, the issues here might be specific to thi
by jdmg94 5y ago
Memoizing everything might be hurting more than helping your apps performance. I’ve built a few different apps with RN, the issues here might be specific to this project
- danlugo92 5y agoNo I've had apps where I memoized everything, then turned it all of for a testrun and it was very visibly slower without memoizing.
- jbaudanza 5y agoI know this is theoretically true, but I've never found this to be the case in practice. Coinbase, in fact, has made it a rule that all things must be put in useMemo. https://attardi.org/why-we-memo-all-the-things/ https://attardi.org/why-we-memo-all-the-things/ Facebook is working on an experimental compiler called React Forget that will transparently memoize everything for you. https://www.reddit.com/r/reactjs/comments/rcn5ks/react_forget_compiler_automated_memoization_react/ https://www.reddit.com/r/reactjs/comments/rcn5ks/react_forge...