[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: mmap investigations



Hi Daniel!

Daniel Burrows wrote:
> On Thu, Nov 13, 2008 at 07:25:28PM +0200, "Eugene V. Lyubimkin" <jackyf.devel@gmail.com> was heard to say:
>> Daniel Burrows wrote:
>>> I personally would suggest eliminating the use of mmap altogether,
>> Heh. I wish it was so simple :) Apt using mmap for fast-accessible cache in
>> memory to put various small chunks of info. Using of new/delete should lead to
>> great speeddown of work.
> 
>   I didn't say to use new/delete.  I said to get rid of mmap'ing the
> whole file and just read bits as you need them.  It seems pretty clear
> to me that mmap() on this large a file is just a fragile design.  (both
> from my work with apt and other coding I've done)
Hm... understood.

Anyway, I've started another branch to investigate how apt will proceed
without mmap and with new/delete. Who knows, maybe cache is not so great at all.

-- 
Eugene V. Lyubimkin aka JackYF, JID: jackyf.devel(maildog)gmail.com
Ukrainian C++ Developer, Debian APT contributor

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: