This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] Avoid the use of mmap as buffer for stdio streams


Wolfram Gloger wrote:
Although I think "custom mallocs not providing calloc()" is by now
probably not a very strong argument, the fact that zeroed memory is
required somewhat weakens the disadvantages of using mmap.



actually... mmap means the kernel needs to zero 4Kb of memory (and it does)... even though the buffer is only 1Kb by default... so that's 3Kb extra zeroed for no reason ...

(this is part of why mmap is so expensive)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]