in reply to Re^2: How to deal with the fact that Perl is not releasing memory
in thread How to deal with the fact that Perl is not releasing memory
How large can the result of grab_page() be? Expect your peak memory use to be that number multiplied by 3 or so. (Even then it should not slow the script down.)
One bit that looks wasteful are these parts that cause a fairly large string copy (I think):
Throw away the temporary variable and I don't think it'll fix your problem but it might slow down the memory bloat a bit:$content = template 'messages' => {messages => \@messages}; { content => $content }
{ content => template( 'messages' => {messages => \@messages} ) }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: How to deal with the fact that Perl is not releasing memory
by carlbolduc (Novice) on Jul 07, 2013 at 18:01 UTC | |
by Anonymous Monk on Jul 07, 2013 at 21:10 UTC |