in reply to Re^2: Removing Flanking "N"s in a DNA String
in thread Removing Flanking "N"s in a DNA String
With reference to your regex, I always find it a bit sadomasochistic to use regular expression meta characters to delimit a regular expression, it does kind of muddy the waters.
I prefer to use balanced delimiters for several reasons, not least of which is consistancy.
See 506374, though I have say the whole argument for using two statements rather than one seems like the most obvious case of premature optimisation--and yet it seems enshrined in the FAQ.
If your benchmark is correct, then you're talking of saving 13.18 microseconds per trim, which means you'll save a whole second every 75,872 trims you perform.
I also think that your benchmark is flawed, but I'll wait until mine has been picked apart before I argue that case :)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Removing Flanking "N"s in a DNA String
by reasonablekeith (Deacon) on Nov 07, 2005 at 16:11 UTC |