Sebastien Robert
Sebastien Robert

Reputation: 331

Increase Asp.net Application Performance

I just want some tricks for increase ASP.Net application. This question is a little wide, but if you can give me some general tips I will appreciate.

Upvotes: 0

Views: 199

Answers (5)

immutabl
immutabl

Reputation: 6903

You could try:

Optimising your database:
* redesign/normalise your schema
* index tables
* revisit your SQL/Stored Proc code and amend for speed if you can.
* Check execution plans for big datasets and indeed dodgy SQL code ;)

Web App:
Use Tracing to figure out where the bottlenecks are and then:
* Cache the output, controls and data wherever possible.
* Use IIS to compress the html output.
* Compress or disable viewstate entirely for webforms. Or persist it in a db.

Misc
* Load external files from CDNs e.g. jquery
* Run a tool to strip whitespace from the html of the response.

Upvotes: 1

Icarus
Icarus

Reputation: 63972

  1. Avoid using the view state if you can
  2. If you can do CRUD operations through web service methods or web page methods, go for it (this will avoid full post backs and going back and forth of viewstate)
  3. If ViewState is a must, try using one of the ViewState providers or implement your own
  4. If using javascript libraries or your own code, try minimizing them with jsmin (http://www.crockford.com/javascript/jsmin.html)
  5. Use compression on IIS or Apache (if you use Mono)
  6. Use Caching for images and javascript files (configure IIS or Apache to send the appropriate headers when getting data from the "images" or "js" folders on your solution)
  7. Define image sizes on your markup i.e. set width="..." height="..."

Upvotes: 0

codymanix
codymanix

Reputation: 29520

Disabling automatic Viewstate management is a good start.

Upvotes: 1

Raj More
Raj More

Reputation: 48034

I would suggest that you don't go into premature optimization.

Figure out what the slow parts are, then fix them.

Upvotes: 2

Related Questions