Re: Streaming MIME parser
suresh! <suresh_lakshmanan-/[email protected]>
| Newsgroups | gmane.mail.libetpan.user |
|---|---|
| Message-ID | <[email protected]> |
>mmap() will not store the entire content of the file >in memory. That will fetch the content of the file >on-demand and remove the less used parts of the file >from memory when needed. I read the documentation for mmap. It does not clearly say how mmap handles lot of memory. According to my understanding, if a huge file needs to be mmaped then a virtual address range of length requested is obtained. How much of the file actually remains in memory and how much is swapped out? So, does the unused portions of the file remains in the swap space until it is demanded? Please tell if my understanding is correct? >I think that mmap() is really what you need there, I >suggest you to read further documentation about mmap Not running out of memory for huge messages is my primary concern at this point of time. A stream based SAX stuff would be in the wish list :) Thanks for your time. L.Suresh __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click