dbus uses unix domain sockets - aren't they slow ?

Havoc Pennington hp at pobox.com
Sun Feb 24 15:43:05 PST 2008


Hi,

On Sun, Feb 24, 2008 at 6:31 PM, sfora dim <sfora.dim at gmail.com> wrote:
>  But - is Unix domain sockets fast ? isn't only the fact that you need
>  to pass it a path everytime u send something doesn' mean it is slow ?
>  doesn't that mean the kernel needs to parse this path which is awfully slow ?
>  e.g., msg queues don't need a path..
>

Unix domain sockets amount to a memcpy(), not a whole lot more than
that anyway. They are not the bottleneck in dbus, the bottleneck is
generally protocol (de)serialization (or round trips, if an app does
not take care to avoid those).

Havoc


More information about the dbus mailing list