13

在大量使用D-Bus的应用程序中获得更好的时间性能有哪些好的做法?

以下是我们的团队通过艰苦的打击学校学到的一些东西:

  • 尝试将数据实体组合成一个单一的大型结构/对象,以通过 D-Bus IPC 发送。
  • 尝试让所有 D-Bus 流量在您的应用程序/进程中的单个点进入单个代理,而不是让它们分布在您的应用程序/进程中。
4

1 回答 1

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.

于 2012-02-26T14:02:15.940 回答