Just a random suggestion, might work might not: import gc
gc.collect() Sent from my iPhone > On 31-Oct-2014, at 9:10 pm, Eric Thivierge <ethivie...@hybride.com> wrote: > > Hello again, > > Just wondering if anyone has experienced memory leaks when using commands > within Python modules that have been imported? Doing some mesh merging and > attribute transfer within a method of a class I created, and the memory sky > rockets and takes forever. However when I run the same code in the script > editor outside of the python module, it works without crazy a memory leak and > finishes within a good amount of time. > > I'd like to mention that I'm setting the undo stack to 0 before running the > code for each test. > > Eric T. >