aboutsummaryrefslogtreecommitdiff
path: root/lzio.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2020-10-06 13:37:41 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2020-10-12 12:29:09 -0300
commit9ecd446141f572252a57cb33d2bba6aa00d96a55 (patch)
treececd4f91efc181f652d6647e18772732262422a5 /lzio.h
parentfb172d0a929432856983a51d4139f705d4c01365 (diff)
downloadlua-9ecd446141f572252a57cb33d2bba6aa00d96a55.tar.gz
lua-9ecd446141f572252a57cb33d2bba6aa00d96a55.tar.bz2
lua-9ecd446141f572252a57cb33d2bba6aa00d96a55.zip
Avoid shrinking stacks to often
Shrink a stack only when the final stack size can be at most 2/3 the previous size with half of its entries empty. This commit also improves the clarity of 'luaD_growstack'.
Diffstat (limited to 'lzio.h')
0 files changed, 0 insertions, 0 deletions