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.  If we know for sure that the argument is going to be a string, is there way to avoid this additional performance penalty. I was looking for an API that operates only on string like strcpy  in C , but could not find anything
Is there any faster way to do string substitution in Lua apart from using string.gsub.