]> git.ipfire.org Git - thirdparty/kmod.git/commit
tools/depmod: use separate arrays for alias,xxxdep values
authorEmil Velikov <emil.l.velikov@gmail.com>
Sun, 20 Oct 2024 12:39:02 +0000 (13:39 +0100)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Tue, 22 Oct 2024 17:18:18 +0000 (12:18 -0500)
commit823849a05aa611cbf82fce1587c97129c4e20a2c
treed683f4e28d3aa295335a83e9531ba8464a0cad70
parent5ebbde938099aaf931878ebbed3c48fc85c6f248
tools/depmod: use separate arrays for alias,xxxdep values

Currently, we walk the info list multiples times each time filtering all
but one key. Just create a few arrays to avoid that, saving 2-3% cycles
at the cost of extra ~500bytes per module.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Link: https://github.com/kmod-project/kmod/pull/197
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
tools/depmod.c