[dokuwiki] p_get_instructions => How can I free some memory ?

Hi everybody,

I do the following, with a big document in $text.
msg("Memory Usage A: ". memory_get_usage(), -1);
$ins = p_get_instructions($text);
msg("Memory Usage B: ". memory_get_usage(), -1);
//$parsed = $this->p_render(...);
unset($ins);
msg("Memory Usage C: ". memory_get_usage(), -1);

I got that :
Memory Usage A: 4812880
Memory Usage B: 6586184
Memory Usage C: 6586184

How can I efficiently freeing $ins (instructions results set) when I don't need it anymore ?

Thank you.

Best Regards,
Jeremie
--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist

Other related posts: