in reply to Re^3: Hash memory leak: posible scope issue?
in thread Hash memory leak: posible scope issue?
I did the same thing by copying the script and removing all that was not related to %RCache. I could run it 25 times more than the calls in the script and 'no memory leak'. It seems that something I'm doing is making %RCache the victim of another part of the script.
I did remove all I/O. In the actual code, the first time I go to the resetCache subroutine is more the 3 minutes into the run, while I could run the reduced script in less than 2 seconds. So there's a lot going on, but it has to be my code.
I'm using 'sysseek/sysread/syswrite' because of having boundary problems with 'seek/read/print' or mainly 'print', but I have been pleased with the performance of the 'sys*' functions. I'll try to remove less code and see what happens.
Thank you for thinking of the packages. I'll keep you informed.
"Well done is better than well said." - Benjamin Franklin
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Hash memory leak: posible scope issue?
by BrowserUk (Patriarch) on Jan 03, 2012 at 20:35 UTC | |
by flexvault (Monsignor) on Jan 03, 2012 at 20:50 UTC | |
by flexvault (Monsignor) on Jan 07, 2012 at 19:07 UTC |