Simplification and smaller buffers for 'lua_pushfstring'

The function 'lua_pushfstring' is seldom called with large strings,
there is no need to optimize too much for that cases.
This commit is contained in:
Roberto Ierusalimschy
2020-07-03 11:36:56 -03:00
parent 56a165bf0f
commit e96385aded
2 changed files with 17 additions and 11 deletions

View File

@@ -438,7 +438,7 @@ else
-- formats %U, %f, %I already tested elsewhere
local blen = 400 -- internal buffer length in 'luaO_pushfstring'
local blen = 200 -- internal buffer length in 'luaO_pushfstring'
local function callpfs (op, fmt, n)
local x = {T.testC("pushfstring" .. op .. "; return *", fmt, n)}