From f0368253d113e0639468a6b482988fae791d67f6 Mon Sep 17 00:00:00 2001 From: Xavier Del Campo Romero Date: Fri, 24 Nov 2023 01:38:51 +0100 Subject: [PATCH] Bump libweb The following commit should increase performance for slcl: commit b0accd099fa8c5110d4c3c68830ad6fd810ca3ec Author: Xavier Del Campo Romero Date: Fri Nov 24 00:52:50 2023 +0100 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. --- libweb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libweb b/libweb index dec953e..b0accd0 160000 --- a/libweb +++ b/libweb @@ -1 +1 @@ -Subproject commit dec953e4f4af89149685c7463c422ccca6174cb8 +Subproject commit b0accd099fa8c5110d4c3c68830ad6fd810ca3ec