Random Logic l Forum.NET l ASP.NET performance Forum.NET 5 th Meeting ● March 2006 By Yaniv Sharon
Random Logic l Forum.NET l Agenda What is Performance tuning Problem description Viewstate Mass data handling ASP.NET controls Excel exports Zipping content Compressed output
Random Logic l Forum.NET l What is Performance tuning? Monitoring and analyzing the net performance of a system and adjusting its configuration to obtain optimum performance.
Random Logic l Forum.NET l What is Performance tuning? -In computing, optimization is the process of modifying a system to improve its efficiency. The system can be a single computer program, a collection of computers or even an entire network such as the Internet.
Random Logic l Forum.NET l Problem description -Slow access of FE & BO users -Physical line limitations (BO) -Multi posting of forms (BO & FE)
Random Logic l Forum.NET l HTTP REQUEST (GET) Process Request RESULT 500ms 200ms 100ms 1.Get 200ms 2.Process 100ms 3.Result 500ms Total 800ms
Random Logic l Forum.NET l HTTP REQUEST (GET) Process Request RESULT500ms 1500ms 3000ms 1.Get 4500ms 2.Process 3000ms 3.Result 500ms Total 8000ms HTTP REQUEST (GET) 1500ms
Random Logic l Forum.NET l ASP.NET controls Control names Single object controls Multi-objects controls (tables etc)
Random Logic l Forum.NET l Viewstate -The Viewstate input -Minimize Viewstate usage -Using server-side solutions -Re-generating the data -Session object (higher server utilization, less network traffic)
Random Logic l Forum.NET l Using asp.net httpModules, to add compression to generated html: Web config: Supported by IE5.5+ Content compression
Random Logic l Forum.NET l Compressed output -IIS supports compress output -IE 5.5(?) and higher -Not fully supported in all browsers -Good for BO -Images -Saves 30%-40% of traffic
Random Logic l Forum.NET l Excel exports -Most exports are done with exporter objects. -Pros: -Styled output -Cons: -Slow processing -High Cpu utilization (server side) -Limited line numbers (5K)
Random Logic l Forum.NET l Excel exports -Export using the response object -Pros: -Faster -Line number limit is 64K -Minimum cpu usage (server side) -Cons: -No styling
Random Logic l Forum.NET l Zipping content! -Determine what content can be zipped (excel exports) -Use zip component to zip the output -Save 90% of network traffic -Save 90% of download time
Random Logic l Forum.NET l Questions?
Random Logic l Forum.NET l Thank You