diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2024-10-28 10:54:36 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2024-10-28 10:54:36 -0300 |
commit | 853311e5b1c1d9fe9d006e3a4f322e9916764933 (patch) | |
tree | cae01cc75ba1fe77ebe016e6a695fb718e9c3297 /lmem.c | |
parent | 25a2dac2bcab84d1f1ce8c49b673b4a032a29a4a (diff) | |
download | lua-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 'lmem.c')
0 files changed, 0 insertions, 0 deletions