Re: Memory usage
"Daniel P. Berrange" <[email protected]>
| Newsgroups | gmane.comp.lang.perl.modules.mail-box |
|---|---|
| Message-ID | <[email protected]> |
On Fri, Mar 12, 2004 at 11:07:13AM +0000, Miah Gregory wrote: > Hi all, > > I've written a simple perl script using MailBox to scan through a > MailDir, checking the age of messages, and moving or deleting them given > certain rules. > > Whilst the script seems to work ok, it does take a long time to run, but > the main problem is memory usage - with a big folder with, say, 5000 > messages in it, the script exhausts the memory on the machine. > > Is there anything I can do to improve either of the above? I've had a problem with memory usage too - I reduced memory consumption by calling $message->destruct after finishing dealing with each message - but I still can't process all 500MB of mail archives in one go without restarting my script. Dan. -- |=- http://www.berrange.com/~dan/gpgkey.txt -=| |=- [email protected] - Daniel Berrange - [email protected] -=|
signature.asc
(application/pgp-signature, 232 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQFAUZvmvTAeyOKLMk4RAp52AKClqg74THay5ZxeDS/Gw/ZeTPwP8QCfUJoJ FvRfgrZBIbtPfElUH6PvtEc= =LGQz -----END PGP SIGNATURE-----