aboutsummaryrefslogtreecommitdiff
path: root/lapi.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2024-10-28 10:54:36 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2024-10-28 10:54:36 -0300
commit853311e5b1c1d9fe9d006e3a4f322e9916764933 (patch)
treecae01cc75ba1fe77ebe016e6a695fb718e9c3297 /lapi.c
parent25a2dac2bcab84d1f1ce8c49b673b4a032a29a4a (diff)
downloadlua-853311e5b1c1d9fe9d006e3a4f322e9916764933.tar.gz
lua-853311e5b1c1d9fe9d006e3a4f322e9916764933.tar.bz2
lua-853311e5b1c1d9fe9d006e3a4f322e9916764933.zip
Table rehash can resize only the hash part
If there are no integer keys outside the array part, there is no reason to resize it, saving the time to count its elements. Moreover, assignments to non-integer keys will not collapse a table created with 'table.create'.
Diffstat (limited to 'lapi.c')
0 files changed, 0 insertions, 0 deletions