Another short code reading session makes me believe that Set is the main culprit: we use a Lua table t and putting something into the table is t[item._hash] = item and removing it is t[item._hash] = nil. Apparently the garbagce collector is not clever enough to collect this efficiently.
Another short code reading session makes me believe that Set is the main culprit: we use a Lua table t and putting something into the table is t[item._hash] = item and removing it is t[item._hash] = nil. Apparently the garbagce collector is not clever enough to collect this efficiently.