]> git.sesse.net Git - vlc/commit
Sort configuration items for faster lookup
authorRémi Denis-Courmont <remi@remlab.net>
Sat, 23 Jan 2010 21:00:31 +0000 (23:00 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Sat, 23 Jan 2010 21:03:43 +0000 (23:03 +0200)
commit6d656addd5f9d7f47f64070200398ac96c7f547b
tree56522af256a09e63545e07542fc84da79b737fd6
parente4f31848149cff7b04726f499c76897bc7b0298c
Sort configuration items for faster lookup

We have well over one thousand configuration items, not counting
dummy hint entries. So now, sort all of them once (well, twice),
and use binary instead of linear search for lookups.
config_Get*, config_Put*, var_Create(with INHERIT flag),
var_CreateGet* and var_Inherit* do such lookups.
src/config/configuration.h
src/config/core.c
src/modules/modules.c