in reply to Re^4: Remove all non alphanumeric characters excluding space, underscore and minus sign (Benchmark--)
in thread Remove all non alphanumeric characters excluding space, underscore and minus sign
Thanks. I was short on time and posted with code I wouldn't use myself because it seemed to demonstrate the problem with the prior code. When I use Benchmark myself, I arrange for a way to test the code being benchmarked for exactly these types of reasons.
I was fooled by seeing a 200% difference but I still should've rejected the code when the run time per operation was that low.
Sorry for posting "in a hurry". Thanks for the correction. :)
- tye
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Remove all non alphanumeric characters excluding space, underscore and minus sign (Benchmark--)
by Tux (Canon) on Feb 13, 2012 at 22:22 UTC |