Using multiple matches for d-bus signals

Havoc Pennington hp at pobox.com
Thu Oct 30 05:03:04 PDT 2008


Hi,

On Thu, Oct 30, 2008 at 5:24 AM, Soh Kam Yung <sohkamyung at gmail.com> wrote:
> Will the d-bus daemon slow down significantly if there are a lot of
> matches (added via dbus_bus_add_match())?
>
> If yes, is there a limit (or rule-of-thumb) to follow before the
> daemon starts to get bogged down processing signal matches?

Yes, right now the matches are searched in a linear list. The search
is pretty fast, but still O(n). I would guess that if you have several
hundred you might start to notice.

Havoc


More information about the dbus mailing list