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 committed 2020-07-03 11:36:56 -03:00
1 parent 56a165bf0f
commit e96385aded
2 files changed
+17 -11

No files matched your search

+1 -1
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)}