The web in hyper speed: Boosting performance with memoization
summary
Claim: memoization cuts repeated pure-function work dramatically — a demo goes from ~2.2ms to ~0.17ms (about 95% speedup) and a generic wrapper version runs ~0.45ms. Implements a JS cache pattern using console.time for measurement, shows examples on a discount function and Fibonacci recursion, and maps the idea to React’s useMemo hook. The thing built is a generic memoize wrapper around functions, it runs successfully and reduces redundant computation.
AI-written summary · about
chapters (5)
- 0:00Start
- 8:39Caching results instead of calculating them every time
- 9:22Computation speed over memory space
- 25:07Key takeaways
- 26:38Performance is not a feature
related talks
28mStop Memoizing with “React Forget”
17mDon't Forget React memo
30mAre we React-ing wrongly?
37mThe magic behind the React compiler
21mDid You Not Get the Memo? Signed, Atomic Design
38mLive Coding - Optimizing a React application
46m10 secrets to improve Javascript Performance
29mExtreme JavaScript Performance
