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 |
ASP Web sites | ASP style | XML |
Optimizing ASP scripts
- Maximizing the Performance of Your Active Server Pages by Nancy Winnick Cluts
- 15 Seconds: Performance Section
- Enhancing Performance in ASP - Part I by Wayne Plourde
- Speed and Optimization Resources by Charles Carroll
Tuning IIS
- The Art and Science of Web Server Tuning with Internet Information Services 5.0
- Leveraging ASP in IIS 5.0 by J.D. Meier
- Tuning Internet Information Server Performance by Mike Moore
ADO and SQL Server
- Top Ten Tips: Accessing SQL Through ADO and ASP by J.D. Meier
- Improve the Performance of your MDAC Application by Suresh Kannan
- Pooling in the Microsoft Data Access Components by Leland Ahlbeck and Don Willits
- SQL Server: Performance Benchmarks and Guides
ASP components and threading models
- ASP Component Guidelines by J.D. Meier
- Q243548: INFO: Design Guidelines for VB Components under ASP
- Threading Models Explained by Nancy Winnick Cluts
- Developing Active Server Components with ATL by George Reilly
- Agility in Server Components by Neil Allain
- Active Server Pages and COM Apartments by Don Box
- House of COM: Active Server Pages by Don Box
- House of COM: Contexts by Don Box
- House of COM: Performance Trade-offs of the Windows 2000 Component Execution Environment by Don Box
- Building COM Components That Take Full Advantage of Visual Basic and Scripting by Ivo Salmre
Dictionary components
Session state
- Q175167: HOWTO: Persisting Values Without Sessions
- Q157906: HOWTO: How To Maintain State Across Pages with VBScript
- XML-based Persistence Behaviors Fix Web Farm Headaches by Aaron Skonnard
- MSDN Magazine: Basic Instinct To Cache or not to Cache by Ted Pattison
Performance and scalability
- Server Performance and Scalability Killers by George Reilly
- Top Windows DNA Performance Mistakes and How to Prevent Them by Gary Geiger and Jon Pulsipher
Tools
- I Can't Stress It Enough -- Load Test Your ASP Application by J.D. Meier
- Windows DNA Performance Kit
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
- Microsoft TechNet for IIS
- LearnASP.com
- 4GuysFromRolla.com
- 15Seconds.com
- AspToday.com
- Asp101.com
- AspLists.com. Many specialized mailing lists including:
- Fast Code!
- ASP Advanced
- Not Newbie
- State Management
- Scalability
- Visual Basic Components
- XML
- C++/ATL Component Building
- UseIt.com: Web Usability
ASP style
- ASP Quick Lessons by Charles Carroll
- ASP Guidelines by J.D. Meier
XML
- Inside XML Performance by Chris Lovett
- Inside MSXML3 Performance by Chris Lovet
Get news, entertainment and everything you care about at Live.com. Check it out!
ليست هناك تعليقات:
إرسال تعليق