Archaegeo / DualUniverseLuaIssues

DualUniverse LUA Issue Tracking
GNU General Public License v3.0
5 stars 0 forks source link

Databanks with many keys freeze the game #18

Closed dlbd closed 3 years ago

dlbd commented 3 years ago

Databank operations take a long time when the databank stores many keys.

The following script freezes the game for almost 2 minutes:

databank.clear()

local t_start = system.getTime()

for i = 1, 3000 do
    databank.setIntValue(tostring(i), 0)
end

system.print(string.format("Total time: %.10f", system.getTime() - t_start))

Suggestions:

NQ-Deckard commented 3 years ago

Bug recorded.

Archaegeo commented 3 years ago

Closing as collected