https://issues.apache.org/SpamAssassin/show_bug.cgi?id=5590

--- Comment #11 from Mark Martinec <mark.marti...@ijs.si> 2010-01-14 17:16:50 
UTC ---
Took a 176 KB message that showed slow processing in the log, and run it
with and without 'use bytes' in Message.pm. Network tests disabled,
some SARE rules, HitFreqsRuleTiming plugin enabled, perl 5.10.1:

without 'use bytes' (as in 3.3.0-rc3), top-15 rules by elapsed time:

T         __FILL_THIS_FORM_SHORT    3.218    3.218    1
T            FILL_THIS_FORM_LONG    3.127    3.127    1
T   __FILL_THIS_FORM_FRAUD_PHISH    1.501    1.501    1
T          __FILL_THIS_FORM_LOAN    0.841    0.841    1
T          SARE_SPEC_ROLEX_NOV5B    0.666    0.666    1
T               __LOTSA_MONEY_03    0.467    0.467    1
T               __LOTSA_MONEY_01    0.456    0.456    1
T                    __FRAUD_DBI    0.431    0.431    1
T          SARE_SPEC_ROLEX_NOV5A    0.426    0.426    1
T               __LOTSA_MONEY_00    0.385    0.385    1
T                 __SARE_DEGREES    0.344    0.344    1
T             __SARE_FRAUD_MONEY    0.304    0.304    1
T                    FUZZY_XPILL    0.250    0.250    1
T              __SARE_FRAUD_VIPS    0.239    0.239    1
T                    SOFTWARE_AD    0.233    0.233    1

X-Spam-Timing: total 60780 ms - init: 5474 (9.0%), parse: 27 (0.0%),
  extract_message_metadata: 533 (0.9%), get_uri_detail_list: 287 (0.5%),
  tests_pri_-1000: 21 (0.0%), compile_gen: 1201 (2.0%), compile_eval: 47
(0.1%),
  tests_pri_-950: 11 (0.0%), tests_pri_-900: 12 (0.0%), tests_pri_-400: 966
  (1.6%), check_bayes: 954 (1.6%), tests_pri_0: 52742 (86.8%), tests_pri_500:
  334 (0.5%), tests_pri_899: 284 (0.5%), check_crm114: 271 (0.4%),
  tests_pri_1000: 69 (0.1%), total_awl: 56 (0.1%), check_awl: 5 (0.0%),
  update_awl: 13 (0.0%), rewrite_mail: 0.00 (0.0%)

==> most notably: tests_pri_0: 52.742 seconds


Now, adding 'use bytes':

T         __FILL_THIS_FORM_SHORT    1.310    1.310    1
T            FILL_THIS_FORM_LONG    1.260    1.260    1
T   __FILL_THIS_FORM_FRAUD_PHISH    0.541    0.541    1
T          __FILL_THIS_FORM_LOAN    0.382    0.382    1
T          SARE_SPEC_ROLEX_NOV5B    0.160    0.160    1
T               __LOTSA_MONEY_03    0.149    0.149    1
T               __LOTSA_MONEY_01    0.145    0.145    1
T          SARE_SPEC_ROLEX_NOV5A    0.136    0.136    1
T               __LOTSA_MONEY_00    0.127    0.127    1
T   __FILL_THIS_FORM_PARTIAL_RAW    0.123    0.123    1
T                    __FRAUD_DBI    0.108    0.108    1
T             __SARE_FRAUD_MONEY    0.096    0.096    1
T                 __SARE_DEGREES    0.095    0.095    1
T             __SARE_FRAUD_TRUST    0.087    0.087    1
T                SARE_MONEYTERMS    0.083    0.083    1

X-Spam-Timing: total 26186 ms - init: 5552 (21.2%), parse: 27 (0.1%),
  extract_message_metadata: 506 (1.9%), get_uri_detail_list: 285 (1.1%),
  tests_pri_-1000: 21 (0.1%), compile_gen: 1149 (4.4%), compile_eval: 51
(0.2%),
  tests_pri_-950: 10 (0.0%), tests_pri_-900: 11 (0.0%), tests_pri_-400: 917
  (3.5%), check_bayes: 906 (3.5%), tests_pri_0: 18131 (69.2%), tests_pri_500:
  348 (1.3%), tests_pri_899: 285 (1.1%), check_crm114: 265 (1.0%),
  tests_pri_1000: 76 (0.3%), total_awl: 56 (0.2%), check_awl: 6 (0.0%),
  update_awl: 3 (0.0%), rewrite_mail: 0.00 (0.0%)

==> most notably: tests_pri_0: 18.131 seconds


A factor of 2.9 reduction in rules pocessing time!  (52.742/18.131)

-- 
Configure bugmail: 
https://issues.apache.org/SpamAssassin/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Reply via email to