July 2000 | Advanced Programming Techniques | Slide #37 |
Memoization stores the cached data in a hash
Tie the hash to a DBM file!
Now the cached data persists from one run to the next
Write a dummy program that calls your function with many different arguments
Run it over the weekend
On Monday, values are all precomputed
"The Cache in the Hash Comes Back"
Next | Copyright © 2000 M-J. Dominus |