[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: string.sub vs string.byte
- From: Adrian Sietsma <adrian_groups@...>
- Date: Sun, 25 Jul 2004 00:29:21 -0700
I am writing an app that must test every character in an input stream.
As i understand it, "s1 = string.sub(s,n,n)" must construct a new string
each time it is called.
Would "b = string.byte(s,n)" be appreciably faster ?
(although all my comparisons would then be number, rather than string,
and i believe slower)
Adrian