D-Bus: Performance improvement practices

≡放荡痞女 提交于 2020-01-01 08:05:12

问题


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.

回答1:


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.

  • Profiling and Optimizing D-Bus APIs
  • The Slothful Ways of D-Bus

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.



来源:https://stackoverflow.com/questions/3169296/d-bus-performance-improvement-practices

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!