Putting this here as I was staring at the code for an hour last night and think this could solve the problem in #341
Testing looks something like:
s = ii.wsyn
for i=1,100 do
print(i, collectgarbage'count')
s.ramp(0)
end
Without this fix, the RAM should be exhausted within a few iterations. This fix should allow substantially more without crashing (and perhaps won't crash at all). I'm reasonably sure the above will crash on the current main but that should be tested too.
Putting this here as I was staring at the code for an hour last night and think this could solve the problem in #341
Testing looks something like:
Without this fix, the RAM should be exhausted within a few iterations. This fix should allow substantially more without crashing (and perhaps won't crash at all). I'm reasonably sure the above will crash on the current
main
but that should be tested too.Super happy for anyone else to confirm this.
Fixes #341