]> git.ipfire.org Git - thirdparty/kmod.git/commit
libkmod: Improve index dump performance
authorTobias Stoeckmann <tobias@stoeckmann.org>
Sun, 17 Nov 2024 10:39:59 +0000 (11:39 +0100)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Fri, 29 Nov 2024 13:49:10 +0000 (07:49 -0600)
commitda98d970e8726b15b3a34992bd000c8e6708cade
tree52eef78aba52269435beb2bbb2b3c318569d7994
parent9cc16ef0acd7253c7696a80cffdd0a18d99d5cd0
libkmod: Improve index dump performance

Buffer data before calling write for output. This reduces the amount
of total write system calls and leads to faster execution times.

This is a simple approach to imitate FILE's I/O buffering, which we
cannot use because we want to properly handle interrupts.

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