1
0
mirror of https://github.com/lua/lua.git synced 2025-01-14 05:43:00 +08:00
lua/testes
Roberto Ierusalimschy 002beeebe7 New way to keep hints for table length
Instead of using 'alimit' for keeping the size of the array and at
the same time being a hint for '#t', a table now keeps these two
values separate. The Table structure has a field 'asize' with the
size of the array, while the length hint is kept in the array itself.
That way, tables with no array part waste no space with that field.
Moreover, the space for the hint may have zero cost for small arrays,
if the array of tags plus the hint still fits in a single word.
2024-11-29 17:26:20 -03:00
..
2022-12-23 11:28:11 -03:00
2022-12-28 18:38:20 -03:00
2024-11-25 15:47:08 -03:00
2024-01-16 17:02:55 -03:00
2019-07-30 12:18:19 -03:00
2018-12-14 13:49:02 -02:00
2024-05-08 17:50:10 -03:00
2021-03-01 13:54:29 -03:00