lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


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