mirror of
https://github.com/lua/lua
synced 2026-09-26 16:17:11 +03:00
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:
parent
56a165bf0f
commit
e96385aded
2 changed files with 17 additions and 11 deletions
|
|
@ -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)}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue