开发者

Would upgrading from .net 2.0 to 4.0 give a performance increase?

开发者 https://www.devze.com 2023-03-24 01:16 出处:网络
We have finally put our giant VB.net 2.0 Web Application into a code freeze exclusively so we can put some performance enhancements into it.

We have finally put our giant VB.net 2.0 Web Application into a code freeze exclusively so we can put some performance enhancements into it.

I was wondering if it would be worth it to upgrade the .Net开发者_运维知识库 version to increase the application's performance.


It will be worthwhile to upgrade, but not due to automatic improvements.

It will be worthwhile to upgrade because you'll have more options on how to fix the performance problems.

It will also be worthwhile to upgrade because .NET 2.0 is six years old! Don't ever stay in the past unless you have to, or you'll eventually wind up having to explain why you're using decade-old technology.


Impossible to say. You would have to design some repeatable performance tests, and then A->B them against your application running on each .Net version. For instance, your application's performance could be influenced by IO, or memory constraints. A .Net upgrade is unlikely to help with this.


Instead of taking a huge shot in the dark (building w/ 4.0) to try and increase performance you should run a profiler against your code base to identify performance bottle necks. You might upgrade anyway but if you do get a performance boost it would most likely be negligible. Profiling and fixing bottle necks regardless of version will be the best way to proceed.

Btw, if you do go with 4.0 and VS 2010 you get a profiler built into the IDE.

0

精彩评论

暂无评论...
验证码 换一张
取 消