I share in the need for your idea... We looked at dbus for our embedded system, but in the end it was simply too complicated and slow. It's great for the Desktop and its features are important and necessary. But it doesnt fit the bill for embedded systems.<div>
<br><div>I also looked at Android's binder, but it is too heavy on Java. In the end we ended up writing our own system. We mostly use Unix domain sockets which are very fast on Linux. We go all binary. If you need to move really big pieces of data shared memory would be great - we just dont need it.</div>
<div><br></div><div><br clear="all">Ed<br><br>
<br><br><div class="gmail_quote">On Thu, Jan 20, 2011 at 1:53 AM, Ville M. Vainio <span dir="ltr"><<a href="mailto:vivainio@gmail.com">vivainio@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Just some subversive thoughts (not a practical development project for now):<br>
<br>
- Dbus is very slow. It's okay on desktop, but on mobile platforms<br>
it's suboptimal<br>
<br>
- It could be much (10x?) faster - switch to shared memory, posix<br>
message queues for data transmission (references to relevant shared<br>
memory blocks), do not do any verification<br>
<br>
- Switch to peer-to-peer communication as soon as possible while doing<br>
the handshake through daemon (minimize context switches, transmission<br>
counts).<br>
<br>
- It should be possible to make apps using libdbus to still work with<br>
this new structure, to retain application compatibility. Obviously<br>
wire protocol disappears completely.<br>
<br>
- Retain the current serialization functionality. However, provide a<br>
way to skip it (since people say it's one reason why dbus is slow) and<br>
transmit raw binary data very quickly.<br>
<br>
Implementing this might be easier than fixing dbus, and it could get<br>
rid of thread synchronization problems. It would definitely fix speed.<br>
Thoughts?<br>
<font color="#888888"><br>
--<br>
Ville M. Vainio @@ Forum Nokia<br>
_______________________________________________<br>
dbus mailing list<br>
<a href="mailto:dbus@lists.freedesktop.org">dbus@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/dbus" target="_blank">http://lists.freedesktop.org/mailman/listinfo/dbus</a><br>
</font></blockquote></div><br></div></div>