DEV Community

Discussion on: Increase the speed execution of your functions with memoization

Collapse
 
chrisachard profile image
Chris Achard

Great post, thanks. I would add that memoizing too early may be premature optimization 😉 but it's a great technique for highly-called functions

Collapse
 
aminnairi profile image
Amin

Totally agree. It could even worsen the performance for trivial functions in some cases where parameters are called in a unique way.