Re: Purge tool as a portability nightmare

From: Henrik Nordström <henrik_at_henriknordstrom.net>
Date: Fri, 03 Jun 2011 17:39:25 +0200

fre 2011-06-03 klockan 12:56 +0200 skrev Kinkie:

> > Regarding purging then there is other ideas on that, such as keeping
> a
> > timestamped "purge list" which invalidates cache hits from before.
> > Benefit is that purge operations is instant, not requiring a whole
> cache
> > scan. Downside is that we somehow need (should) to keep track of a
> > timestamp when an cached object last was evaulated against the purge
> > list for performance reasons.
>
> Quite expensive, if we allow (as purge does) regexps :\

Not really. The penalty is only on cache hits, and only on objects which
have not been hit after the last purge pattern were added.

But it does add a "if (a < b)" condition on every cache hit, and one
more parameter to keep track of per object.

Regards
Henrik
Received on Fri Jun 03 2011 - 15:39:29 MDT

This archive was generated by hypermail 2.2.0 : Fri Jun 03 2011 - 12:00:04 MDT