LRU cache for ~=
Sean Kelly
sean at invisibleduck.org
Mon Oct 19 15:57:47 PDT 2009
Andrei Alexandrescu Wrote:
>
> I think GC.collect may simply evict the entire cache. The collection
> cycle costs so much, the marginal cost of losing cached information is
> lost in the noise.
Right. The GC already has an LRU cache of size 1 (ie. LRU entry) for GC.sizeOf() and GC.query(), and these values are cleared on a collection by necessity, since pages can be repurposed if they're been completely emptied.
More information about the Digitalmars-d
mailing list