13

What are some good practices to obtain better time performance in applications that heavily utilize D-Bus?

Here are a few that our team has learned through the school of hard knocks:

  • Try to combine data entities together into a single, large structure/object to send over D-Bus IPC.
  • Try to have all D-Bus traffic come into a single proxy at a single point in your application/process, rather than having them spread throughout your application/process.
Philip Withnall
  • 4,900
  • 13
  • 24
J. Polfer
  • 11,811
  • 9
  • 53
  • 82

1 Answers1

7

There have been a couple of good talks on this subject by the developer of Bustle which is a tool to help you visualise and measure the D-Bus performance of your application and the services its talking too.

There is also some D-Bus API design documentation which discusses how to design performant D-Bus APIs. The most important principle is to reduce the number of round-trips your API requires clients to make.

Philip Withnall
  • 4,900
  • 13
  • 24
Rob Bradford
  • 1,410
  • 12
  • 16