文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>spamassassin (Utf8Performance)

spamassassin (Utf8Performance)

时间:2006-08-02  来源:snowtty

Performance on Red Hat 8/9/Fedora Core 1 is terrible, compared to other OSes.
Are you using the default $LANG setting? Do this:
  echo $LANG
If it contains "utf8", then that's probably the problem. Change it so it does not contain "utf8" (see RedHatMalformedUtf8), and the performance issues will clear up.
Perl 5.8 uses Unicode character sets internally in this situation, and unfortunately, this greatly hurts performance of all Perl code which operates heavily on strings (like SpamAssassin).   RedHatMalformedUtf8
I get 'Malformed UTF-8 character' errors on Red Hat 8, or using perl 5.8.0, with SA 2.43.
Perl 5.8 introduces a policy change to using UTF-8 character sets by default, which broke a massive amount of existing perl code, including SpamAssassin. SpamAssassin 2.50 will contain a fix, but in the meantime, add this line to the script which starts spamd, or runs the spamassassin script:
        LANG=en_US; export LANG
   
相关阅读 更多 +
排行榜 更多 +
世界战争生存射击

世界战争生存射击

飞行射击 下载
真实狩猎

真实狩猎

飞行射击 下载
狙击之荣耀最新版

狙击之荣耀最新版

飞行射击 下载