On Wed, Nov 15, 2006 at 10:32:32AM +0100, Robert Felber wrote: > > Well, this requires a time() call for each skip, which is expensive (CPU > wise). If one wants to reflect 30 minutes skips then one could use an > approximate value. For instance, in peak times you receive 2000 Mails per hour > you could use 1000 as BL_SKIP_RELEASE. Or alternatively 500. > > Actually, the time() call is not realy THAT expensive, but the more careless > we get, the more the overall load increases (german saying "Kleinvieh macht > den meisten Dreck" applies).
You could just update some global variable with time(), like once a minute with timer or something. Perhaps it would save some microseconds. ;) Cheers, Henrik ____________________________________________________________ Policyd-weight Mailinglist - http://www.policyd-weight.org/