在asp應(yīng)用過程中改進串處理技術(shù)性能[外文翻譯].doc
約6頁DOC格式手機打開展開
在asp應(yīng)用過程中改進串處理技術(shù)性能[外文翻譯],在asp 應(yīng)用過程中改進串處理技術(shù)性能[外文翻譯]包括英文原文和中文翻譯英文:5200字 中文:1500字improving string handling performance in asp applicationsasp designmany asp developers have followed good s...
內(nèi)容介紹
此文檔由會員 8008008 發(fā)布
在ASP 應(yīng)用過程中改進串處理技術(shù)性能[外文翻譯]
包括英文原文和中文翻譯
英文: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 應(yīng)用過程中改進串處理技術(shù)性能
ASP 設(shè)計
很多ASP開發(fā)者已經(jīng)遵循好的軟件設(shè)計原則并且模塊化他們的代碼。這種設(shè)計通常采取用某一頁的部分離散的功能模塊組成新頁的形式。線性輸出由這些功能實現(xiàn),通常是HTML代碼表,然后能通過各種各樣結(jié)合形式形成完整的一頁。一些開發(fā)者已經(jīng)更深入一步研究并且把這些HTML函數(shù)作為Visual Basic COM的組成部分,希望受益于額外的編譯代碼提供的執(zhí)行性能。
雖然這是一個好的設(shè)計慣例,通過這種方法建立數(shù)據(jù)流對網(wǎng)絡(luò)站點執(zhí)行效率有較大影響。不管現(xiàn)實操作執(zhí)行是從ASP的包含文件還是Visual Basic COM 零部件。
數(shù)據(jù)串串聯(lián)
考慮下列代碼碎片取自WriteHTML函數(shù)。 命名數(shù)據(jù)的參數(shù)僅僅是一個數(shù)組包含一些需要被格式化成一個表結(jié)構(gòu)的數(shù)據(jù) ......
包括英文原文和中文翻譯
英文: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 應(yīng)用過程中改進串處理技術(shù)性能
ASP 設(shè)計
很多ASP開發(fā)者已經(jīng)遵循好的軟件設(shè)計原則并且模塊化他們的代碼。這種設(shè)計通常采取用某一頁的部分離散的功能模塊組成新頁的形式。線性輸出由這些功能實現(xiàn),通常是HTML代碼表,然后能通過各種各樣結(jié)合形式形成完整的一頁。一些開發(fā)者已經(jīng)更深入一步研究并且把這些HTML函數(shù)作為Visual Basic COM的組成部分,希望受益于額外的編譯代碼提供的執(zhí)行性能。
雖然這是一個好的設(shè)計慣例,通過這種方法建立數(shù)據(jù)流對網(wǎng)絡(luò)站點執(zhí)行效率有較大影響。不管現(xiàn)實操作執(zhí)行是從ASP的包含文件還是Visual Basic COM 零部件。
數(shù)據(jù)串串聯(lián)
考慮下列代碼碎片取自WriteHTML函數(shù)。 命名數(shù)據(jù)的參數(shù)僅僅是一個數(shù)組包含一些需要被格式化成一個表結(jié)構(gòu)的數(shù)據(jù) ......