|Perl: the Markov chain saw|
Re: Memory Management and Array referencesby crabbdean (Pilgrim)
|on Jul 19, 2004 at 22:02 UTC||Need Help??|
I like to try and do followups to my posts so that it serves as a solution database for others as much as possible. Often it takes some time though to find out what's going on before I post back a result.
After, dare I say, about 100+ hours of debugging on this problem my code was looking pretty clean (well clean enough). I then found out about Devel::Peek the other day (I love this module BTW) and went through most of the script checking the creation and destruction of my objects and variables all the way through, checking reference counts etc. All appeared good. Needless to say by now I was reaching the height of frustration.
It had occurred to me before that maybe what I was experiencing was a memory management issue with my OS(Win2000) so I re-image a PC at work with XP and ran my script on it across our Terabyte File Server. It ripped through the entire File Server in about 2 hours without breaking a sweat!!! Not a memory leak in sight.
So there you have it, my kung-fu was good, my OS was not! A lesson well learnt.
The Funkster of Mirth
Programming these days takes more than a lone avenger with a compiler. - sam
RFC1149: A Standard for the Transmission of IP Datagrams on Avian Carriers