wordfor

memoization

noun

Software design

  1. Storing the result of a function call so the next call with the same arguments returns it without recomputing. Memoizing the price calculation cut render time because each row stopped recomputing totals.

In plain words

  • it recalculates the same thing over and over
  • cache the result of a function
  • the same expensive call runs many times
  • remember previous results

See also pure function cache invalidation derived state

Find similar words