Marshalling/unmarshalling costs

Martin Langhoff martin.langhoff at
Mon May 19 18:06:50 EDT 2008

Looking at the datastore code,  I suspect that a good chunk of our
time is going into unmarshalling/marshalling data that we send over

Has anyone looked at this at all? Any facts to support/dispel what is
basically a gut-feeling?

D-Bus is a nice IPC, for sure (yummy syntactic sugarfor ye olde
socket), but in the bits of code I've looked at, it seems like we are
using it to pass actual data. Ooops! Marshalling/unmarshalling costs
in cpu and memory for any sizable data are murder.

What D-Bus is designed for - with all its transparent
marshal/unmarshal magic - is sending easy-to-use signals, with perhaps
a tiny bit of data as payload. But unbound data needs to be dealt with
via other means - let the D-Bus message point to where the actual data


 martin.langhoff at
 martin at -- School Server Architect
 - ask interesting questions
 - don't get distracted with shiny stuff - working code first

More information about the Devel mailing list