memoize

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Tue Jan 4 11:13:01 PST 2011


On 1/4/11 12:54 PM, bearophile wrote:
> Nick Sabalausky:
>
>> ...until maxSize is exceeded and the cache is cleared.
>
> Clearing the whole cache when it's full is a brutal behaviour, I don't like it. See here for something better:
> http://www.digitalmars.com/webnews/newsgroups.php?art_group=digitalmars.D&article_id=126059
>
> Bye,
> bearophile

There is a difference between caching and memoization. I wouldn't want 
to burden the memoization implementation with LRU management.

Andrei


More information about the Digitalmars-d mailing list