有什么办法可以加快 COM 的速度吗?
我的软件大量使用 COM。这是非常非常慢的。有什么技巧可以加快 COM 通信速度吗?
My software makes heavy use of COM. It is very, very slow. Is there some trick to speeding COM communication up?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果您还没有这样做,请在进程内运行该组件,而不是在单独的服务器进程 (
dllhost.exe
) 中运行。If you're not already doing that, run the component in-process rather than in a separate server process (
dllhost.exe
).运行分析工具来准确测量导致系统缓慢的原因。 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.