From: Robert Feldt Date: 2004-08-15T02:50:59+09:00 Subject: Re: Where is memoize? Michael Neumann wrote: > Robert Feldt wrote: > >> Michael Neumann wrote: >> >>> Hi, >>> >> Hi Michael, >> >>> Does anyone know where I can download the memoize module written by >>> Robert Feldt? >>> >> Hmm, seems that my old employer finally decided to scrap my data; I >> should have prepared for the day I guess but on the other hand they >> haven't touched it for one and a half year and the email account is >> still here... ;) >> >> I'll try to check for some old copy in backup, but it might take some >> time cause this is way back... > > > Thanks! I guess, it wasn't that much of code anyway. My version is > only 15 loc. But I may have forgotten important things in my > implementation. > > See the bottom of this page: > > http://www.ntecs.de/blog/Blog/PerformanceQuantenSprung.rdoc > Yeah, it's nice. My solution is older and thus didn't use some of the new fancy stuff like define_method so is rather bloated. I also use separate caches for each class so that multiple methods with same name can be memoized, and allow different caching policies (BoundedLRUCache etc), but it's easy to extend your solution to cover that... I'll try to find a new home for the old package (and update RAA and other links to it) just in case... Regards, Robert