commit | 3da34a5fa70a51f0cf06d677a4f07b470693260c | [log] [tgz] |
---|---|---|
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | Wed Apr 24 14:01:20 2019 -0300 |
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | Wed Apr 24 14:01:20 2019 -0300 |
tree | 384aeb18a404a076a57188070f1e155a7cc24b3d | |
parent | 20b161e2859837e4f7fb1c19440ad7efe1588f1f [diff] |
Revamp of 'lua_pushfstring' / 'luaO_pushvfstring' The function 'luaO_pushvfstring' now uses an internal buffer to concatenate small strings, instead of pushing all pieces on the stack. This avoids the creation of several small Lua strings for each piece of the result. (For instance, a format like "n: '%d'" used to create three intermediate strings: "n: '", the numeral, and "'". Now it creates none.)