by Giorgio Maone » Wed Feb 19, 2014 11:49 am
Each "Site ..." uses an AddressMatcher object which in turn gets compiled to a rather unoptimized regular expression, unless, of course, it's recognized itself as a single regular expression literal: you can force this recognition by starting the expression with the "
^" character.
Therefore, the best way to "import" an external list as an ABE rule is making your import script transform it into one single, possibly
optimized regular expression and feeding it to a single "Site ..." clause.
Each "Site ..." uses an AddressMatcher object which in turn gets compiled to a rather unoptimized regular expression, unless, of course, it's recognized itself as a single regular expression literal: you can force this recognition by starting the expression with the "[b]^[/b]" character.
Therefore, the best way to "import" an external list as an ABE rule is making your import script transform it into one single, possibly [url=http://search.cpan.org/~dankogai/Regexp-Optimizer-0.23/]optimized[/url] regular expression and feeding it to a single "Site ..." clause.