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

Re: apt without MMap



Hi Luca, thanks for look.

Luca Bruno wrote:
> You only analyzed the speed part of your changes, which is amazing.
> But, what about the memory/resources used?
Cache memory is consumed by arrays/lists of small struct's, which previously has fields of
type map_ptrloc, where sizeof(map_ptrloc) == 4. In 'nommap' they contain (<type>)* fields,
which has the same 4 bytes on 32-bit arches and 8 bytes on 64-bit ones.

So, I assume that it will be only a regression in memory size on 64-bit arches, but I
don't consider this as problem because 64-bit arches usually have large amounts of RAM,
and additional 8-32 MiB of heap doesn't make a concern.

-- 
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: