none
Performance Optimization of C# Application

    Question

  • hi
    Is there any guide or documentation available that help me understand various factors that can optimize my application with respect to performance .
    What steps should i take or what factors should i consider in order to cater the performance issue while coding .How attribute and code analysis feature can really help

    Any idea , guideline will be highly appreciated ....

    Thanks
    Tabish.
    Friday, July 28, 2006 5:52 PM

Answers

  • I think that the ebook "Improving .NET Application Performance and Scalability" is an outstanding resource for application optimization tips and tricks, it can be downloaded from:   http://www.microsoft.com/downloads/details.aspx?familyid=8A2E454D-F30E-4E72-B531-75384A0F1C47&displaylang=en

     

    And if you need more performance improvement than that, you can look into grid computing:  http://www.digipede.net  

     

    Have fun,

     

    Kim Greenlee

    Friday, July 28, 2006 10:37 PM
  • Hi,

    About performance issues, read the article from the previous post that is very good.

    About real time applications, we have design a real time auction engine with 23 servers interacting with each other and it works great. Remember that because is precompiled code the first execution of every function the CLR compiles your precompiled code into machine code (this is done only once), once the code is there it will be cached by the CLR so no new compilation is needed. Once the first execution is done, the performance is as a native applicaiton, indeed, sometimes better as the CLR can choose to include processor specific functions depending of the system where your application is running.

    If you are worried about the first execution you can compile your code on your target machine with the NGEN utility.

    My advice is go for it.

    Regards

    Monday, July 31, 2006 11:54 AM

All replies

  • I second that....
    Friday, July 28, 2006 6:33 PM
  • I think that the ebook "Improving .NET Application Performance and Scalability" is an outstanding resource for application optimization tips and tricks, it can be downloaded from:   http://www.microsoft.com/downloads/details.aspx?familyid=8A2E454D-F30E-4E72-B531-75384A0F1C47&displaylang=en

     

    And if you need more performance improvement than that, you can look into grid computing:  http://www.digipede.net  

     

    Have fun,

     

    Kim Greenlee

    Friday, July 28, 2006 10:37 PM
  • What performance issues one should keep in mind during designing a system in .NET and before coding the system .....
    secondly is .Net good enough to build Real time applications in which performance (with respect ti IO , CPU usage etc) is the critical issue

    Thanks again
    Monday, July 31, 2006 8:51 AM
  • Hi,

    About performance issues, read the article from the previous post that is very good.

    About real time applications, we have design a real time auction engine with 23 servers interacting with each other and it works great. Remember that because is precompiled code the first execution of every function the CLR compiles your precompiled code into machine code (this is done only once), once the code is there it will be cached by the CLR so no new compilation is needed. Once the first execution is done, the performance is as a native applicaiton, indeed, sometimes better as the CLR can choose to include processor specific functions depending of the system where your application is running.

    If you are worried about the first execution you can compile your code on your target machine with the NGEN utility.

    My advice is go for it.

    Regards

    Monday, July 31, 2006 11:54 AM
  • Hi Salvador,

     

    I was searching through the forum for threads on .net performance and I came across your post. I would appreciate if you could help to answer some of my doubts.

     

    1. Since you've designed and implemented a real time auction engine, do you think .net is also suitable for signal processing that requires performance in term of a few milliseconds? In other words, is .net suitable for high performance computing applications?

     

    2. On top of the good practices recommended in ebook "Improving .NET Application Performance and Scalability", do you think one should also take into consideration of cache misses and leverage on the high speed L1 & L2 caches to help boost the performance? I've no idea how this can be done and I've been trying to get more info how to write managed code that can take full advantage of the L1 & L2 cache.

     

    Regards,

    chew

     

    Sunday, May 13, 2007 12:15 AM
  • Software Developers phobia is code optimization, i've wrote some remarks, please take a look here : http://www.jaftalks.com/Home/Show/Code%20optimization%20remarks
    • Edited by Hasan Jaffal Wednesday, March 31, 2010 12:27 PM broken link
    Thursday, January 14, 2010 1:49 PM