aboutsummaryrefslogtreecommitdiff
path: root/lgc.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2024-11-13 13:37:24 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2024-11-13 13:37:24 -0300
commit2491b87c10db530eac2f3d81cd39f95875d16cd5 (patch)
tree56c066e5e2ccc3eb7b10bea1ba6c60d2b834a8f9 /lgc.c
parent0de81911525bc62bc2a8fc52a368102afed7022b (diff)
downloadlua-2491b87c10db530eac2f3d81cd39f95875d16cd5.tar.gz
lua-2491b87c10db530eac2f3d81cd39f95875d16cd5.tar.bz2
lua-2491b87c10db530eac2f3d81cd39f95875d16cd5.zip
New rule for size of array part
Array part needs 1/3 of its elements filled, instead of 1/2. Array entries use ~1/3 the memory of hash entries, so this new rule still ensures that array parts do not use more memory than keeping the values in the hash, while allowing more uses of the array part, which is more efficient than the hash.
Diffstat (limited to 'lgc.c')
0 files changed, 0 insertions, 0 deletions