3 ms·
Lua tables are similar- they're nominally hash tables but are often used as arrays (including a length operator), and a few versions ago they added an optimizat
by Rusky 11y ago
Lua tables are similar- they're nominally hash tables but are often used as arrays (including a length operator), and a few versions ago they added an optimization where small integer keys are stored in an actual linear array.
- Franciscouzo 11y agoThe optimization is actually for contiguous integer keys, starting from 1.