I’ve done a little experimenting with my dev code and i’m realizing that once a list is populated, the space is never cleared. It appears to reuse the space but it never frees it back to the script for use somewhere else. There does seem to be some long standing existence growth that kinda sucks too.
Has anyone figured out how to shrink lists after they aren’t needed back to null?
Also, it seems like the mono version doesn’t need the old hack of :
mylist += [item];
v.
mylist = (mylist = []) + mylist + [item];
Both seem to work with equal memory efficiency.
My Major problem is that my script before it actually does any real work costs ~45k and that doesn’t leave alot of the 64k mono limit left for lists and transient objects.
Hopefully, I’ll learn something useful in my testing and be able to share it as things improve.
Any insights would be great, Thank.
Giggy Karu