DEV Community

Discussion on: Optimize the hell out of your Javascript programs with Memoization.

Collapse
 
akashkava profile image
Akash Kava

I believe the word is called caching and its very old technique, but yes, people don't use it !!

Collapse
 
mongopark profile image
Ola' John Ajiboye • Edited

Yea, you are correct. It's similar to caching but not exactly the same.

Collapse
 
elmuerte profile image
Michiel Hendriks

Caching and memoization are related, but not the same. Caching is mutable, and generally constraint in size or time.

Catch invalidation is a thing, memoization invalidation is not.

In most cases you want caching. Only in certain algebraic cases you want memoization.