Marshalling/unmarshalling costs
Martin Langhoff
martin.langhoff at gmail.com
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
D-Bus.
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
is.
cheers,
m
--
martin.langhoff at gmail.com
martin at laptop.org -- School Server Architect
- ask interesting questions
- don't get distracted with shiny stuff - working code first
- http://wiki.laptop.org/go/User:Martinlanghoff
More information about the Devel
mailing list