Daniel Pietzsch

Personal blog. Mostly photos.

Memoization

In computing, memoization is an optimization technique used primarily to speed up computer programs by having function calls avoid repeating the calculation of results for previously-processed inputs.

In Ruby f.e., this can be achieved with the good old ||= operator.