On Tue, 2011-11-29 at 14:22 -0800, Adam Katz wrote: > If you want to fork the thread into a tangent, please change the subject > so other responses to it don't follow you. Also, don't respond to the > parts of the thread you are not forking; those belong in another message > in the original thread. > That wasn't my intention. I *thought* I was merely adding an aside to say "if you really want rules with lots of alternates, here's a tool that can help" because I think we've all all struggled with rules that straggle off the right edge of the page with many editors. I know vi/vim will wrap those lines, but a lot of people dislike vi.
> You might want to consider Regexp::Assemble for your tool, though that > would require using perl. This would cause your man page's example rule > to result in something like this: > > body __AU0 /(?i-xsm:\balt[123]\b)/ > > rather than your script's *much* slower: > > body __AU0 /\b(alt1|alt2|alt3)\b/i > Interesting idea. Currently my system's performance seems 'adequate', considering I'm running SA on an 866 mHz P3 box with 512 MB RAM: Min Avg Max Scan times: 0.9 ( 3401 bytes) 4.0 128.3 ( 72858 bytes) Msg sizes: 2258 ( 1.8 secs ) 10474 507533 ( 6.2 secs ) Messages: 2032 What sort of speed-up would Regexp::Assemble provide? How would that compare with compiling the portmanteau.cf file? Martin