Quoting Bowie Bailey <bowie_bai...@buc.com>:
Martin Gregorie wrote:
On Fri, 2010-03-12 at 08:15 +0200, Henrik K wrote:
Why don't you simply maintain your wordlists in some files and use a script
to generate portmanteau.cf? You could use Regexp::Assemble module to
optimize also. Who cares what the actual rules look like? The more words
(simple alternations) there are in a single RE, the better it performs. If
you want clarity in the cf, keep the original words listed in a comment
block.
- does the order of alternations have any effect on performance or
is alphabetic order good enough? It would certainly make rule
generation simpler.
I believe Regexp::Assemble will optimize the RE for you, so it shouldn't
matter what order the words are listed.
Correct. It does wonders here for other purposes.
For a non-optimized RE, you should list shorter or more common options
first.