计算机科学与技术 外文翻译 外文文献 英文文献 提高字符串处理性能的应用程序.doc
文本预览下载声明
1.所译外文资料:Improving String Handling Performance in ASP Applications
①作者:James Musson
②书名(或论文题目):
③出 版 社(或刊物名称):Developer Services, Microsoft UK
④出版时间(或刊号):March 2003
外文资料原文
摘自:/en-us/library/ms972323.aspx
Improving String Handling Performance in ASP ApplicationsJames Musson
Developer Services, Microsoft UK
March 2003
Summary: Most Active Server Pages (ASP) applications rely on string concatenation to build HTML-formatted data that is then presented to users. This article contains a comparison of several ways to create this HTML data stream, some of which provide better performance than others for a given situation. A reasonable knowledge of ASP and Visual Basic programming is assumed. (11 printed pages)
Contents
Introduction
ASP Design
String Concatenation
The Quick and Easy Solution
The StringBuilder
The Built-in Method
Testing
Results
Conclusion
Introduction
When writing ASP pages, the developer is really just creating a stream of formatted text that is written to the Web client via the Response object provided by ASP. You can build this text stream in several different ways and the method you choose can have a large impact on both the performance and the scalability of the Web application. On numerous occasions in which I have helped customers with performance-tuning their Web applications, I have found that one of the major wins has come from changing the way that the HTML stream is created. In this article I will show a few of the common techniques and test what effect they have on the performance of a simple ASP page.
ASP Design
Many ASP developers have followed good software engineering principles and modularized their code wherever possible. This design normally takes the form of a number of include files that contain functions modeling particular discrete sections of a page. The string outputs from these functions, usually HTML table code, can then be used in various combinations to build a complete page. Some developers have taken this a stage further an
显示全部