diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2020-10-06 13:37:41 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2020-10-12 12:29:09 -0300 |
commit | 9ecd446141f572252a57cb33d2bba6aa00d96a55 (patch) | |
tree | cecd4f91efc181f652d6647e18772732262422a5 /llex.c | |
parent | fb172d0a929432856983a51d4139f705d4c01365 (diff) | |
download | lua-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 'llex.c')
0 files changed, 0 insertions, 0 deletions