开发者

Tools For Code Performance in .Net And C# [closed]

Closed. This question does not meet Stack Overflow guidelines. It i开发者_运维知识库s not currently accepting answers.

Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.

Closed 8 years ago.

Improve this question

For Example You know foreach loop is heavy And if we use for loop is Better.

What Tools Can Help me to Write Code With Best Performance In C Sharp net,And Check My Code for this?

Please Help me

Edit ::

I Want A Tools To Convert my Code To Best Performance Code.For Example When I Compile My C Sharp Code To IL Code,This Tools Convert foreach loop to for loop For Best Performance.


Redgate's performance profiler is a great tool for this, which has a free 14-day trial.

Jetbrain's profiler is also very good.


The best tool for performance optimization is a good profiler. The profiler will show you what parts of your code take the longest to execute. You can then focus your efforts where they will do the most good. Visual Studio 2010 (I think Professional and up) has a very good profiler in the box. I also like Red-Gate ANT profiler and JetBrain's dotTrace.


Keyword: Profiler. A profiler executes your code and helps you discovering performance-lacks by measuring.

Best one for .NET is: http://www.jetbrains.com/profiler/index.html?dt30pr

Microsoft also has a program to analize your .NET assemblies (not by measuring) but by reflecting in order to detect performancecosting coding habits (e.g. defining more than 64 variables in a method block):

http://msdn.microsoft.com/en-us/library/bb429476%28VS.80%29.aspx


The tool you need is called Profiler. I like dotTrace Profiler (Google it). btw, foreach loop is not heavy it self.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜