在asp应用过程中改进串处理技术性能[外文翻译].doc

约6页DOC格式手机打开展开

在asp应用过程中改进串处理技术性能[外文翻译],在asp 应用过程中改进串处理技术性能[外文翻译]包括英文原文和中文翻译英文:5200字 中文:1500字improving string handling performance in asp applicationsasp designmany asp developers have followed good s...
编号:8-77265大小:44.50K
分类: 论文>外文翻译

内容介绍

此文档由会员 8008008 发布

在ASP 应用过程中改进串处理技术性能[外文翻译]

包括英文原文和中文翻译

英文:5200字
中文:1500字

Improving String Handling Performance in ASP Applications

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 and moved these HTML functions into Visual Basic COM components, hoping to benefit from the extra performance that compiled code can offer.
Although this is certainly a good design practice, the method used to build the strings that form these discrete HTML code components can have a large bearing on how well the Web site performs and scales—regardless of whether the actual operation is performed from within an ASP include file or a Visual Basic COM component.
String Concatenation
Consider the following code fragment taken from a function called WriteHTML. The parameter named Data is simply an array of strings containing some data that needs to be formatted into a table structure (data returned from a database, for instance).
Function WriteHTML( Data )......





在ASP 应用过程中改进串处理技术性能
ASP 设计
很多ASP开发者已经遵循好的软件设计原则并且模块化他们的代码。这种设计通常采取用某一页的部分离散的功能模块组成新页的形式。线性输出由这些功能实现,通常是HTML代码表,然后能通过各种各样结合形式形成完整的一页。一些开发者已经更深入一步研究并且把这些HTML函数作为Visual Basic COM的组成部分,希望受益于额外的编译代码提供的执行性能。
虽然这是一个好的设计惯例,通过这种方法建立数据流对网络站点执行效率有较大影响。不管现实操作执行是从ASP的包含文件还是Visual Basic COM 零部件。
数据串串联
考虑下列代码碎片取自WriteHTML函数。 命名数据的参数仅仅是一个数组包含一些需要被格式化成一个表结构的数据 ......