Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • How to improve Asp.Net web application performance ?

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 162
    Comment on it

    Many times, the web application goes slow down, after go live on a production server. There may be two reasons - hardware issues where you deployed the application or the CPU and memory usage are high due to not using resources efficiently inside your web application code.

    Before starting to work on improving performance, you will have to understand that what is the cause of slowing down the web application. You have to reduce page load time, manage state and resources efficiently and improve data access performance in your ASP.Net applications, for that below are some best practices mentioned:

    1. Use output caching.
    2. Always set debug=false in a web.config before deployment on a production server.
    3. Choose Session State management carefully into code.
    4. Always deploy with Release Build on a production server.
    5. Disable View State of a Page if possible into code.
    6. Avoid Response.Redirect into your code.
    7. Use StringBuilder to concatenate strings into your code.
    8. Don't throw exceptions, always handle the exception into code.
    9. Use "Finally Method" to kill resources into code.
    10. Use Client-side Scripts for validations into code.
    11. Avoid unnecessary round trips to the server into code.
    12. Use Page.ISPostBack wherever it is required into code.
    13. Include Return Statements within the Function/Method.
    14. Use Foreach loop instead of For loop for String Iteration.
    15. Avoid Unnecessary Indirection.
    16. Always check Page.IsValid when using Validation Controls.
    17. Use Paging to show data in the page.
    18. Do Ajax calls instead of ASP.NET code behind code.
    19. Store your content by using caching.
    20. Use low cost authentication.
    21. Minimize the number of web server controls.
    22. Avoid making frequent calls across processes.
    23. Remove the unused HTTPMODULES.
    24. Minimize assemblies.
    25. Minimize images.
    26. Use Reflection wisely if needed.
    27. Avoid Recursive Functions / Nested Loops.
    28. Make JavaScript and CSS External.
    29. Bundle JavaScript.
    30. Bundle StyleSheet.
    31. Use Ngen.exe to optimize managed code performance.
    32. Do a load test in the end of development cycle.
    33. Script rendering order and cleaning up Html code.
    34. Use the high-performance libraries.
    35. Do compression at IIS Level.

    Reference:

    https://msdn.microsoft.com/en-us/library/ff649152.aspx

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: