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
In reply to Re^5: Remove all non alphanumeric characters excluding space, underscore and minus sign (Benchmark--)
by tye
in thread Remove all non alphanumeric characters excluding space, underscore and minus sign
by ikkeniet
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |