Fork me on GitHub!
Señor Developer!

RUG::B

Ruby User Group Berlin

How to memoize

this Topic will be presented by Denis Defreyne

at March Meetup 2018, hosted by Tobias Pfeiffer

Memoization is an optimisation technique that works by caching the results of slow functions. It’s easy to implement, but a production-ready implementation is considerably trickier. And how do you test that your implementation is correct, and useful?

I’ll show you the tricky bits in implementing memoization, where I’ll touch on Ruby metaprogramming and memory management. Lastly, I’ll show how to measure and verify that memoization is meaningful.

References: ddmemoizeddmetrics

6 People like it