ASP.NET performance - PowerPoint PPT Presentation

About This Presentation
Title:

ASP.NET performance

Description:

ASP.NET controls. Excel exports. Zipping content. Compressed output ... Using asp.net httpModules, to add compression to generated html: Web config: httpModules ... – PowerPoint PPT presentation

Number of Views:104
Avg rating:3.0/5.0
Slides: 17
Provided by: ana75
Category:
Tags: asp | net | asp | logic | net | performance | questions

less

Transcript and Presenter's Notes

Title: ASP.NET performance


1
ASP.NET performance
By Yaniv Sharon
Forum .NET 5th Meeting ? March 2006
2
Agenda
  • What is Performance tuning
  • Problem description
  • Viewstate
  • Mass data handling
  • ASP.NET controls
  • Excel exports
  • Zipping content
  • Compressed output

3
What is Performance tuning?
Monitoring and analyzing the net performance of a
system and adjusting its configuration to obtain
optimum performance.
4
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.
  • http//en.wikipedia.org/wiki/Performance_tuning

5
Problem description
  • Slow access of FE BO users
  • Physical line limitations (BO)
  • Multi posting of forms (BO FE)

6
200ms
500ms
100ms
  • Get 200ms
  • Process 100ms
  • Result 500ms
  • Total 800ms

7
1500ms
1500ms
1500ms
500ms
3000ms
  • Get 4500ms
  • Process 3000ms
  • Result 500ms
  • Total 8000ms

8
ASP.NET controls
  • Control names
  • Single object controls
  • Multi-objects controls (tables etc)

9
Viewstate
  • The Viewstate input
  • Minimize Viewstate usage
  • Using server-side solutions
  • Re-generating the data
  • Session object (higher server utilization, less
    network traffic)

10

Content compression
  • Using asp.net httpModules, to add compression to
    generated html
  • Web config
  • lthttpModulesgt
  • ltadd name"CompressionModule"
    type"blowery.Web.HttpCompress.HttpModule,
    blowery.web.HttpCompress"/gt
  • lt/httpModulesgt
  • Supported by IE5.5

11
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

12
Excel exports
  • Most exports are done with exporter objects.
  • Pros
  • Styled output
  • Cons
  • Slow processing
  • High Cpu utilization (server side)
  • Limited line numbers (5K)

13
Excel exports
  • Export using the response object
  • Pros
  • Faster
  • Line number limit is 64K
  • Minimum cpu usage (server side)
  • Cons
  • No styling

14
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

15
Questions?
16
Thank You
Write a Comment
User Comments (0)
About PowerShow.com