查询共享库性能
我有一个关于静态库和共享库(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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
一旦 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.