[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Is string.gsub() slow when using "plain" pattern?
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Tue, 26 Jul 2016 14:45:03 -0300
> (2) Is s:find("b") as efficient as s:find("b", 1, true) ?
> (4) Can s:find("b") be considered "on par" with executing strstr(s, "b") in C?
Yes. See https://www.lua.org/source/5.3/lstrlib.c.html#str_find_aux :
/* explicit request or no special characters? */
/* do a plain search */