LexilconCondran wrote:Dude i have a huge bug with it, if i refresh data, it must be doing something awful because it was eating up 14.500.900kb of data in my memory
i have 21gb ram, but still, thts 14gb of ram usage from the deck builder
this is a huge bug, no idea how it happens, but if i refresh data, it might have been the issue
I've tried to improve the efficiency without breaking anything in the program. The result is this:
https://drive.google.com/open?id=1gGHma ... NR6ntNCwC8If you would mind, could you give it a try and see if it works on your end? It's working very well for me, but I don't want to replace the current version if it's going to break on other's machines. Just unzip the version you need to a new directory. Don't overwrite your current Deck Builder folder; they can work alongside each other just fine so long as they aren't both open at the same time.
The improvements were quite large. Roughly a 50% decrease in memory usage, and when it refreshes data, it completely wipes the old data from memory, preventing it from having large increases when the refresh menu item is used. It does technically leave a few megabytes worth when refreshing, but this is because the garbage collector doesn't seem to be able to collect everything like it's supposed to. I suspect there's an event or some circular reference that's still not being freed, but I can't track it down. Even so, in a program that takes nearly a GB of ram, <5 MB isn't going to be noticable or impact anything. You could refresh dozens of times before noticing any issues.