D-Bus:性能改进实践 [英] D-Bus: Performance improvement practices
问题描述
在大量使用 D的应用程序中,有哪些好的做法可以提高时间性能-公共汽车?
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:
- 尝试将数据实体组合成一个大型结构/对象,以通过D-Bus IPC发送。
- 尝试拥有所有D-Bus流量都在应用程序/流程中的单个点进入单个代理,而不是分散在整个应用程序/流程中。
推荐答案
Bustle ,这是一个工具,可帮助您可视化和衡量应用程序以及它所谈论的服务的D-Bus性能。
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
还有一些 D-Bus API设计文档,其中讨论了如何设计高性能D-Bus API。最重要的原则是减少您的API要求客户端进行的往返次数。
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.
这篇关于D-Bus:性能改进实践的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!