[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-mailutils] iterating through large mailbox: memory consumption
From: |
Robby Villegas |
Subject: |
Re: [bug-mailutils] iterating through large mailbox: memory consumption |
Date: |
Fri, 11 Mar 2005 15:21:57 -0600 |
Thank you for the explanation, Alain! This is helpful. (I just now
saw your reply, sorry. For some reason I didn't get a daily digest
after my posting.)
> (2) and a certain number of headers are save/allocated for fast processing so
> when you ask for the Subject/From/Date etc ... the lib will not go back to the
> disk .. to slow.
I will try your code changes to reduce the memory consumption from this.
> (1) each message is allocated a structure that will hold the offsets of the
> message
Okay, this makes sense.
However, for some applications, I'd like to make one forward pass
through the mailbox, message by message, and I don't need to back up.
I would get what I need from each message, then call the 'next
message' method of the iterator. I'd be willing to accept that I lose
the caching that is normally done.
It's similar to a SAX style of parsing for XML.
I'd be happy to test our your new code whenever it is ready.
Thanks,
Robby Villegas
- Re: [bug-mailutils] iterating through large mailbox: memory consumption,
Robby Villegas <=