Cosmetic question (or maybe just out of curiosity).
Thanks a lot!
Markus
Ursprüngliche Nachricht
Von: Christian Grothoff
Antwort an: libmicrohttpd development and user mailinglist <
libmicrohttpd@gnu.org>
An: libmicrohttpd@gnu.org
Betreff: Re: [libmicrohttpd] mmap()
Datum: Thu,
I see two (theoretical) benefits:
1) mmap cannot result in memory fragmentation, which could be an issue
with malloc();
2) the allocations can be large-ish, which may mean that malloc() would
internally fall back to mmap() anyway (of course depending on malloc()
and the actual size).
I'm not sure
Hello,
Is there some benefit using 'mmap()' in 'memorypool.c' instead
'malloc()'?
It somehow pollutes VRAM - inspecting with: `pmap -x `
(even if we have plenty of VRAM on x64)
Best wishes
Markus