in reply to Memory leak in map function?
map generally takes simple expressions in the braces.
Why do you assign the return value of process() to a variable, if you don't do anything with it? Just invoke it as a routine:
$module->target($_); $module->process();
As for the memory leak, I suspect my is generating new variables for each array element, which aren't being released until map finishes. Try encapsulating the map code into a subroutine.... that will make fix the leak, I bet.
--
TTTATCGGTCGTTATATAGATGTTTGCA
|
|---|