On Mon, Nov 08, 2010 at 03:22:51PM -0800, Ronald F. Guilmette wrote: > > In message <20101107091813.21bf5104...@camomile.cloud9.net>, > mouss <mo...@ml.netoyen.net> wrote: > > >> Does anyone have an already-developed policd, either available as > >> freeware or for sale that implements the above (rate limits& quotas)? > > > >Well, Stan meant an implementation, not a general concept :) > > http://www.policyd.org/ > > Hay! This is good! Thanks for the tip. I didn't know about that site. > > Just two minor quibbles: > > 1) It appears that v1 was in C while v2 is in Perl. I never trust Perl > for anything requiring high performance, so it seems to me to be kind > of a shame that v2 is in Perl.
Premature optimization is the root of all evil. Policy service performance CPU cost is negligible in any plausible Postfix implementation. The only thing that matter is *latency*, this will be the same in Perl and C, and it may be easier to do event-based programming in Perl than in C. -- Viktor.