in reply to Re^2: Question about speeding a regexp count
in thread Question about speeding a regexp count

This is probably faster:

Don't forget "less maintainable."

How many lines do you have to add or change when someone comes around next week and asks you to look at substring lengths up to 10 characters long?

-sauoq
"My two cents aren't worth a dime.";
  • Comment on Re^3: Question about speeding a regexp count

Replies are listed 'Best First'.
Re^4: Question about speeding a regexp count
by ikegami (Patriarch) on Oct 13, 2005 at 20:25 UTC
    True. Optimization vs Readability/Maintability is always an issue. Only the OP is qualified to answer whether he's willing to sacrifice Readability/Maintability for a 35% increase in speed. (See my benchmarks below.)