Msg#: 4418549 posted 12:09 am on Feb 17, 2012 (gmt 0)
function a iterates through itself, and can call function b.
memory usage slowly creeps up.
is it possible to have flat memory usage? it is my understanding that when a function ends, all the memory is freed up, but that does not seem to be the case here. there are no globals, no appending items to an array, b doesn't call a.
Msg#: 4418549 posted 4:57 pm on Feb 17, 2012 (gmt 0)
100K per pass seems like a lot! :-) To put it in context, create 100 K image and look at it's size - depending on the compression method, this could easily be larger than any reasonable web browser viewport. Speaking of web pages, the "recommended" web page size is not to exceed 40K (but today, you're lucky to find one under 100K.)
Is there any way to flush any variables within this function? What is it doing that's using up 100K with each pass? Is it using global variables, or are all variables scoped to the function?