跨框架性能下降
我有一个 .NET 3.5 WinForms 项目,该项目使用多个第 3 方控件和几个为 1.1 框架编译的自制组件。
使用 1.1 组件是否会影响性能?
I have a .NET 3.5 WinForms project that uses several 3rd party controls and a couple of home-grown components that are compiled for the 1.1 framework.
Is there a performance hit for using 1.1 components?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
否,因为该框架的 1.1 版本应该可以在 2.0 附带的 CLR 运行时上正常运行。 除非您正在做一些奇怪的事情,否则您的应用程序仅在一个 AppDomain 中运行,该 AppDomain 可能是 2.0,因此该 AppDomain 中的所有内容都应该在 2.0 上运行,包括您的 1.1 库。
.NET 3.5 框架是 2.0 框架的扩展。 所以当我说2.0时,3.0和3.5都包含在其中。
所以从运行时的角度来看你完全没问题。 由于不了解有关库的更多信息,您可能会使用在新框架中得到改进的过时 API,但这是您可能遇到问题的唯一地方
No because the version 1.1 of the framework should run just fine on the CLR Runtime that came with 2.0. Unless you are doing something odd, your application is running in only one AppDomain which is probably 2.0, so everything in that AppDomain should be running on 2.0, including your 1.1 libraries.
The .NET 3.5 framework is an extension of the 2.0 framework. So when I say 2.0, 3.0 and 3.5 are included in that.
So you are totally fine from a runtime perspective. Not knowing more about the libraries, you could be using outdated API's that have been improved in the new framework, but that is the only place you might experience a problem