Forums > Javascript

Garbage collection


Lee
May 15, 2012 | 11:44 pm

Hi, wondered if anyone has any views or details on performance of the garbage collector in MAX and M4L. Wondered whether I can really trust this to clean things up efficiently or whether I should be deleting things as I go along?

Any info appreciated, cheers, L


May 16, 2012 | 2:23 pm

You’ll need to specify what you think is supposed to be garbage collected. What are you doing?



Lee
May 16, 2012 | 6:54 pm

Hi. For example if I create lots of arrays for processing during execution of a function, should I be worried about having to delete all the contents myself or will this b efficiently handled by m4l? Also but worried about creating and using multiple Liveapi objects that are attached to callbacks that will not be cleared up Ben though I’m not using them anymore. Thanks, l


Viewing 3 posts - 1 through 3 (of 3 total)