|
No appreciable difference on my machine (Dell Precision i7 about 4 years old) running Lua 5.2 - both take about 1.078 seconds
Ian
From: Egor Skriptunoff <egor.skriptunoff@gmail.com>
Sent: 30 September 2020 12:23 To: Lua mailing list <lua-l@lists.lua.org> Subject: EXT SENDER - Fun with table rehash Hi!
This program runs very fast: local t = {} -- t.slow = true for j = 1, 1e6 do t[j], t[-j] = 0, nil end But if you uncomment the line with the "slow" option... |