spamassassin-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Axb <>
Subject Re: overhead by using meta rules?
Date Fri, 10 Apr 2015 12:45:37 GMT
On 04/10/2015 02:33 PM, Kevin A. McGrail wrote:
> On 4/10/2015 8:21 AM, Carsten wrote:
>> Does a meta-rule consume more power oder time to process than a
>> standard header or body rule?
>> Background:
>> I have hundreds of manual rules, and if meta-rules had no overhead, i
>> would always write meta-rules, so i can easyly add test-cases to the
>> rule.
> It's technically adding overhead because it's two rules.  First the
> subtest and second, the test.  How much overhead, I couldn't tell you.
> I write primarily meta tests but I wouldn't write a test as a meta with
> just one condition.
> Beyond this answer, you'd have to do some benchmarking which there are
> some plugins to help.  See
> and the slow
> rules might help.  I think you would have to write it one way, run
> timings and run the second way and run again.  No idea if the timing
> will be accurate enough for this to be helpful because I predict the
> overhead to be very minimal.

minimal overhead *n = big overhead

my BCP advice would be:

if I you want to score the rule, score it and avoid __RULE
if you don't want to score it and only use it in metas then use __RULE

View raw message