الأحد، 26 أبريل 2009

All ASP Tips to Improve Performance and Style

All ASP Tips to Improve Performance and Style
 
tips for optimizing ASP applications and VBScript
 
Tip 1: Cache Frequently-Used Data on the Web Server
Tip 2: Cache Frequently-Used Data in the Application or Session Objects
Tip 3: Cache Data and HTML on the Web Server's Disks
Tip 4: Avoid Caching Non-Agile Components in the Application or Session Objects
Tip 5: Do Not Cache Database Connections in the Application or Session Objects
Tip 6: Using the Session Object Wisely
Tip 7: Encapsulate Code in COM Objects
Tip 8: Acquire Resources Late, Release Early
Tip 9: Out-of-Process Execution Trades off Performance for Reliability
Tip 10: Use Option Explicit
Tip 11: Use Local Variables in Subroutines and Functions
Tip 12: Copy Frequently-Used Data to Script Variables
Tip 13: Avoid Redimensioning Arrays
Tip 14: Use Response Buffering
Tip 15: Batch Inline Script and Response.Write Statements
Tip 16: Use Response.IsClientConnected Before Embarking on Long Trips
Tip 17: Instantiate Objects Using the <OBJECT> Tag
Tip 18: Use TypeLib Declarations for ADO and Other Components
Tip 19: Take Advantage of Your Browser's Validation Abilities
Tip 20: Avoid String Concatenation in Loops
Tip 21: Enable Browser and Proxy Caching
Tip 22: Use Server.Transfer Instead of Response.Redirect Whenever Possible
Tip 23: Use Trailing Slashes in Directory URLs
Tip 24: Avoid Using Server Variables
Tip 25: Upgrade to the Latest and Greatest
Tip 26: Tune Your Web Server
Tip 27: Do Performance Testing
Tip 28: Read the Resource Links

Tip 28: Read the Resource Links:
Here are some links to some great resources related to performance. If you read anything, read Developing Scalable Web Applications.

Resources

Optimizing ASP scripts

Tuning IIS

ADO and SQL Server

ASP components and threading models

Dictionary components

Session state

Performance and scalability

Tools

Books

  • Professional Active Server Pages 3.0, Wrox Press. (Especially Chapter 26: Optimizing ASP Performance, by George Reilly and Matthew Gibbs)
  • Microsoft Internet Information Services 5.0 Resource Guide (bundled with Windows 2000 Server Resource Kit, Microsoft Press.
  • Microsoft Internet Information Server Resource Kit (for IIS 4.0), Microsoft Press.
  • Programming Distributed Applications with COM and Microsoft Visual Basic 6.0 by Ted Pattison, Microsoft Press.
  • Effective COM by Don Box, Keith Brown, Tim Ewald, and Chris Sells; Addison-Wesley.
  • Developing Web Usability: The Practice of Simplicity by Jakob Nielsen, New Riders.

ASP Web sites

ASP style

XML



Get news, entertainment and everything you care about at Live.com. Check it out!

ليست هناك تعليقات: