The intricacies of implementing memoization in Ruby
(denisdefreyne.com)
In the never-ending quest to write code that is performant, we have many techniques at our disposal. One of those techniques is memoization,111 That’s memoization, not memorization — there’s no “r”! which boils down to storing the results of expensive function calls, so that these expensive functions do not need to be called more than absolutely necessary.
In the never-ending quest to write code that is performant, we have many techniques at our disposal. One of those techniques is memoization,111 That’s memoization, not memorization — there’s no “r”! which boils down to storing the results of expensive function calls, so that these expensive functions do not need to be called more than absolutely necessary.