Re: [PATCH] libdpkg: use mmap if available to parse package info files

2010-05-25 Thread Jonathan Nieder
Guillem Jover wrote: > But even then I think > I'd just prefer switching the code to use chunked I/O instead, which > should be as reliable, and use consistently way less memory at any > given time. Hmm, that basically means reverting commit 864e230e, since stdio uses chunked I/O internally. It

Re: [PATCH] libdpkg: use mmap if available to parse package info files

2010-05-25 Thread Guillem Jover
Hi! On Tue, 2010-05-25 at 13:36:16 -0500, Jonathan Nieder wrote: > Use mmap instead of slurping entire "Packages" or "available" files > into memory. This should reduce memory pressure on low-memory > machines. > > Reported-by: Bill Allombert > Signed-off-by: Jonathan Nieder > --- > Bill Allom

[PATCH] libdpkg: use mmap if available to parse package info files

2010-05-25 Thread Jonathan Nieder
Use mmap instead of slurping entire "Packages" or "available" files into memory. This should reduce memory pressure on low-memory machines. Reported-by: Bill Allombert Signed-off-by: Jonathan Nieder --- Bill Allombert wrote: > Maybe this is because I reran autoreconf > before compiling or beca