Skip to contentSkip to conversation

new udev rule matching engine committed

DISCUSSION Kay Sievers 1 participant 1 message Oct 22, 2008

lore
Share & tools
lore
#0 lore raw

I've committed a new rule matching engine, which uses a key list instead of a rules array.

The in-memory rule array of a common desktop distro's rules set (including the "insane" sane-backend rules) took 1.2 MB, while the key list takes only 170 kB.

old: 1151088 bytes
new: 109232 bytes tokens (6827 * 16 bytes), 71302 bytes buffer

Also the limits of one instance of key type, and 5 instances of ATTR and ENV, per rule are gone.

Thanks,
Kay