Group match rules by their interface.
authorWill Thompson <will.thompson@collabora.co.uk>
Thu, 30 Jul 2009 09:49:33 +0000 (10:49 +0100)
committerRalf Habacker <ralf.habacker@freenet.de>
Tue, 5 Jan 2010 20:11:12 +0000 (21:11 +0100)
commitb4264cb0e66aea2e56b414a529024c35f6a0d90f
tree90b5d369b7366c8a54b4b9d11a31a608a952c89c
parent86d0d2baf58fefab79d4de9508e1fd86fcbb155e
Group match rules by their interface.

In my informal studies of "normal" sets of match rules, only checking
match rules with the appropriate interface for the message reduces the
number that need to be checked by almost 100x on average (ranging from
halving for messages from the bus daemon, to a >200x reduction in many
cases). This reduces the overhead added to dispatching each message by
having lots of irrelevant match rules.
bus/signals.c