查询共享库性能

发布于 2024-07-19 07:29:30 字数 243 浏览 2 评论 0原文

我有一个关于静态库和共享库(windows - dll)之间的性能差异(从消耗的周期的角度来看)的问题。

我有一些代码的静态库。 我还有一个相同代码的动态库。 我已将这两个库链接到一个应用程序。

如果我分析这两个库,性能是否会有任何差异(消耗的周期、缓存命中/丢失等)。(两个库的分析条件、参数相同)

如果是,可能是什么原因造成的差异两人的表演?

谢谢。

-广告。

I have a question about performance difference (from the perspective of Cycles consumed) between a static library and shared library(windows - dll).

I have a static library for some code. I also have a dynamic library for the same code.
I have linked these two libraries to a application.

Will there be any difference in performance(Cycles consumed,Cache hits/missed, etc..) if I profile the two libraries.(Profiling conditions, parameters are same for both libraries)

If yes, what could be the causes for the differences in performances of the two?

Thank You.

-AD.

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

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

发布评论

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

评论(1

回忆那么伤 2024-07-26 07:29:30

一旦 DLL 中的例程被插入,除了调用它们时需要额外的 CALL/RET 之外,没有任何性能差异。

Once the routines in the DLL have been thunked in, there is no performance difference other than an additional CALL/RET when calling them.

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