Being interested in NameOwnerChanged for a namespace, not one name

Havoc Pennington hp at pobox.com
Fri Sep 17 08:44:14 PDT 2010


Hi,

On Fri, Sep 17, 2010 at 11:40 AM, Will Thompson
<will.thompson at collabora.co.uk> wrote:
>
> I'm happy to report that I improved the daemon about a year ago to index
> match rules by message type and interface. :)
>

That's probably the bug/discussion I'm thinking of :-)

> That said, I don't think that globs are necessary. I really can't think of
> any general use-cases for wanting to match anything more than a prefix of
> bus names (or potentially interface names, for the first argument of the new
> org.freedesktop.DBus.Properties.PropertiesChanged signal). Matching a prefix
> is just prefix_length <= actual_length && memcmp(); glob matching is way
> more complicated, so without a justification I'm inclined to pass on that.

Right, with a prefix you could even (in theory) do some kind of tree
thingy instead of a linear search, too.

I'm sure there's a sufficiently-complex way to do a tree thingy for
globs, but I don't feel like coding it ;-)

And yes "tree thingy" is the official CS term :-P

Havoc


More information about the dbus mailing list