in reply to memory issues
The problem is that this line:
if($ipairs{$fk}{$pair}{'pvalue'}){
Rather that just testing if that value exists, it is autovivifying (creating) that value in the nested hashes and setting it to null.
If you change that line to:
if( exists $ipairs{$fk} && exists $ipairs{$fk}{$pair} && exists $ipairs{$fk}{$pair}{'pvalue'} ){
It should prevent the runaway memory growth. As a nice side-effect, your program should run substantially faster also.
BTW. I assume you mean 32GB not 32MB?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: memory issues
by asqwerty (Acolyte) on Jan 28, 2013 at 09:24 UTC | |
by Anonymous Monk on Jan 28, 2013 at 17:01 UTC | |
|
Re^2: memory issues
by asqwerty (Acolyte) on Jan 28, 2013 at 09:25 UTC |