lua-users home
lua-l archive

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


> The Lua API string.gsub will also take a pattern as an argument. I am assuming that because of the assumption that a pattern may be present as an argument, there will be additional processing that will be done every time a string comparison is made.

It seems that you think string.gsub operates in place and modifies the
given string. Despite the name, it does not. So, no, this does not
affect string comparison.

> Is there any faster way to do string substitution in Lua apart from using string.gsub. 

What problem are you really trying to solve?