Contact map window slows contactmap.GetHeat()

Started by brow42

brow42 Lv 1

Low priority, but SERIOUSLY slows down Lua scripts that use GetHeat. People need to know to close the dialog. I suspect many people think contact recipes are too slow to use, when it's some interaction with the GUI at fault. Present in current Win/Mac clients, observed since May. Sample code, on my Mac, executes in 0.19 vs. 2.44 on Sparse Contact Map (expired).

start = os.clock()
total = 0
n = structure.GetCount()
for i = 1,n-2 do
for j = i+2,n do
total = total + contactmap.GetHeat(i,j)