diff options
| author | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2023-11-24 00:52:50 +0100 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2023-11-24 01:36:38 +0100 |
| commit | b0accd099fa8c5110d4c3c68830ad6fd810ca3ec (patch) | |
| tree | c55c429e12924944a03639f74169a5e2bd9a23e4 /doc/man3/html_node_alloc.3 | |
| parent | 7efc2b3aad4960e6a6df9a47495da4a2c00f00c9 (diff) | |
http.c: Unify read operations
So far, libweb would perform different read operations depending on its
state:
- For HTTP headers or request bodies, one byte at a time was read.
- For multipart/form-data, up to BUFSIZ bytes at a time were read.
However, this caused a significant extra number of syscalls for no
reason and would increase code complexity, specially when parsing
multiform/form-data boundaries.
Now, http_read always reads up to BUFSIZ bytes at a time and process
them on a loop. Apart from reducing code complexity, this should
increase performance due to the (much) lower number of syscalls
required.
Diffstat (limited to 'doc/man3/html_node_alloc.3')
0 files changed, 0 insertions, 0 deletions
