aboutsummaryrefslogtreecommitdiff
path: root/luaconf.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2019-04-11 11:29:16 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2019-04-11 11:29:16 -0300
commitb0810c51c3f075cc8a309bfb3c1714ac42b0f020 (patch)
tree8d9e58246f442f1fbec8bb14ffebb77bd40c3564 /luaconf.h
parenta93e0144479f1eb0ac19b8c31862f4cbc2fbe1c4 (diff)
downloadlua-b0810c51c3f075cc8a309bfb3c1714ac42b0f020.tar.gz
lua-b0810c51c3f075cc8a309bfb3c1714ac42b0f020.tar.bz2
lua-b0810c51c3f075cc8a309bfb3c1714ac42b0f020.zip
Small optimizations in 'string.gsub'
Avoid creating extra strings when possible: - avoid creating new resulting string when subject was not modified (instead, return the subject itself); - avoid creating strings representing the captured substrings when handling replacements like '%1' (instead, add the substring directly to the buffer).
Diffstat (limited to 'luaconf.h')
0 files changed, 0 insertions, 0 deletions