[Jax.PM] ~9M lines of data
William C. (Bill) Jones
wcjones at fccj.edu
Mon Oct 14 22:31:53 CDT 2002
Matching 1 Char is faster :)
More...
On Monday, October 14, 2002, at 11:00 PM, J Proctor wrote:
> I'm far too lazy to actually go test /\s/ vs / / to see which, if
> either,
> is faster; without doing so I will make no claim either way. I've
> merely
> speculated that I could imagine / / being faster, because ultimately a
> regex comes down to character comparisons, and one is faster than four.
J, you and I both know that whether /\s/ is slower or faster
than / / will make no difference in the long haul.
Mainly because I usually want to get RID of spaces...
Now, if /^$/ were only faster - then I could die happy :)
-Sx-
More information about the Jacksonville-pm
mailing list