Fork me on GitHub!
Señor Developer!


Ruby User Group Berlin

How to memoize

Denis Defreyne wants to give this talk

No event date yet

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

2 People like it