]> git.ipfire.org Git - thirdparty/kmod.git/commit
shared: improve strbuf_reserve_extra performance
authorTobias Stoeckmann <tobias@stoeckmann.org>
Fri, 28 Feb 2025 16:27:12 +0000 (17:27 +0100)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Fri, 7 Mar 2025 04:57:37 +0000 (22:57 -0600)
commitb4f1546bd388ca4c97b23af5c8e50a567aeec155
treeafc1145df79e3eb895c5a28d6511951cbd60bdbc
parent55c779fa56b19104e0cefedeef95dded529d7b20
shared: improve strbuf_reserve_extra performance

If strbuf is used (depmod, modprobe -c) then strbuf_reserve_extra is
performance critical. This reduces amount of instructions for
modprobe -c by around 10 %, the total instruction count for depmod
by 1 % (majority is within reading module files).

Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
Link: https://github.com/kmod-project/kmod/pull/296
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
shared/strbuf.c