有什么办法可以加快 COM 的速度吗?

发布于 2024-08-03 23:37:36 字数 49 浏览 3 评论 0原文

我的软件大量使用 COM。这是非常非常慢的。有什么技巧可以加快 COM 通信速度吗?

My software makes heavy use of COM. It is very, very slow. Is there some trick to speeding COM communication up?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

毅然前行 2024-08-10 23:37:36

如果您还没有这样做,请在进程内运行该组件,而不是在单独的服务器进程 (dllhost.exe) 中运行。

If you're not already doing that, run the component in-process rather than in a separate server process (dllhost.exe).

小忆控 2024-08-10 23:37:36

运行分析工具来准确测量导致系统缓慢的原因。 COM 似乎是一场大雨的罪魁祸首,但有时缓慢是由您意想不到的事情引起的。引起问题的并不总是您理解最少的部分。

有一次,由于使用了自定义字符串实现,我的整个应用程序运行缓慢。使用探查器挽救了局面。

Run a Profiling tool to measure exactly what is causing the slowness of the system. COM may seem like a good rain to blame, but sometimes slowness is caused by things you don't expect. It's not always the piece that you understand the least that causes problems.

Once my entire application was running slow due to a custom string implementation that was being used. Using the profiler saved the day.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文