As our applications grow and begin to carry out heavier computations, there comes an increasing need for speed ( 🏎️ ) and optimization becomes a necessity. When we ignore this concern, we end up with programs that take a lot of time and consume a monstrous chunk of system resources during execution.
Memoization is an optimization technique that speeds up applications by storing the results of expensive function calls and returning the cached result when the same inputs occur again.
If this doesn’t make much sense to you yet, that’s okay. This article provides an in-depth explanation of why memoization is necessary, what it is, how it can be implemented and when it should be used.
Continue Reading on Scotch.io