There are various benefits:
1) forcing the use of mmap() -- and uniform sizes for all requests --
ensures that we don't suffer from memory fragmentation, which is what
would happen if we allocate lots of different-sized tiny bits based on
say HTTP request headers;
2) using our per-request pool ens
Hi,
While going through the libmicrohttpd sources, I noticed this part in
daemon.c:
/* Allocate memory pool in the processing thread so
* intensively used memory area is allocated in "good"
* (for the thread) memory region. It is important with
* NUMA and/or complex cache hierarchy. */
connection