http://www.perlmonks.org?node_id=175718


in reply to A Regexp Assembler/Compiler

Well, you could construct a trie of the patterns, this would reduce the duplication and marginally improve the efficiency. There is at least one module on CPAN that will do this. I believe it is under the String:: heirarchy, but I dont remember right now.

Yves / DeMerphq
---
Writing a good benchmark isnt as easy as it might look.