How do you speed up you C# web application

Posted on 2009-04-30
Last Modified: 2012-05-06
Dear Experts,

How do you identify the speed bottleneck in your C# web application?

Also how do you speed up the web application?

Thanks :)
Question by:sqlnoob
    LVL 26

    Expert Comment

    by:Anurag Thakur
    there are many ways of doing that but all depends on the factors you think might be slowing the application in first place
    what kind of bottlenecks you have identified so far because our recommendations might be best if we know those

    Author Comment

    I have no idea infact :( It is only the first page that is slow. After the first page everything seems fasterrrrrrr. Also on initial load there's not alot of stuff to be loaded.

    Im thinking it is the lookup for user details from webservices -> AD. However when I ran the webservice to look up user details directly it is fast!
    LVL 26

    Assisted Solution

    by:Anurag Thakur
    jsut to look up user detail will be faster if you are not performing any other activity
    from where you are calling the web sercive - client side or server side

    if your data is same for every user then you can load the data to the cache on the server and then it will be available for all users and you can also write a mechanism where you can invalidte the cache and reload it again
    LVL 6

    Accepted Solution

    To identify the bottlenecks you might find this article helpful. Use CLR Profiler.
    LVL 28

    Assisted Solution

    If you do not pre-compile the website, it will need to compile on the fly the first time it is hit. Another thing to look for is looping conections and unecessarily complex code.

    Unfortunately your question is pretty broad and doesn't have much info as to what you are doing on your pages.

    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    Article by: Najam
    Having new technologies does not mean they will completely replace old components.  Recently I had to create WCF that will be called by VB6 component.  Here I will describe what steps one should follow while doing so, please feel free to post any qu…
    This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now