modprobe: use hash table. speeds up significantly if modprobe.dep is large
authorTimo Teras <timo.teras@iki.fi>
Mon, 20 Jun 2011 07:38:13 +0000 (09:38 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Mon, 20 Jun 2011 07:38:13 +0000 (09:38 +0200)
commite12e0acb92329f95a77121f489b491d84b6a2c33
tree60678cbeedfbe3b2df3dcbc36b3e921bb8a6cd64
parent416e978ce80997088d3f0f2dd532554863d95ab5
modprobe: use hash table. speeds up significantly if modprobe.dep is large

function                                             old     new   delta
helper_get_module                                    106     157     +51
config_file_action                                   413     431     +18
modprobe_main                                        690     706     +16
do_modprobe                                          580     588      +8
add_probe                                             81      83      +2
load_modules_dep                                     192     190      -2
get_or_add_modentry                                   10       -     -10
------------------------------------------------------------------------------
(add/remove: 0/1 grow/shrink: 5/1 up/down: 95/-12)             Total: 83 bytes

Signed-off-by: Timo Teras <timo.teras@iki.fi>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
modutils/modprobe.c