]> git.ipfire.org Git - thirdparty/kmod.git/commit
libkmod: Add better caching to FILE index
authorTobias Stoeckmann <tobias@stoeckmann.org>
Thu, 17 Oct 2024 07:48:06 +0000 (09:48 +0200)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Tue, 29 Oct 2024 02:50:14 +0000 (21:50 -0500)
commit0f6d92ad78fd11daa3fbabe0d53c3ea92f4ba87c
treeabdad614afae9821b60d31a71fde53510eeb45a2
parent899824576d85c59f4979cd5247736577c9d9b054
libkmod: Add better caching to FILE index

We can use getdelim and reuse buffers by referencing the index_file
instead of just the FILE handle.

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