Use Join and Array in ASP to speed up character connection. Code _ javascript skills

Source: Internet
Author: User
In ASP, Join and Array are used to speed up the character connection. Today, I saw a lot of test data on the Internet, so I was too lazy to read it and copied the conclusion.

For example
<%
Dim a (10000), I, t
T = Timer
For I = 0 to 10000
A (I) = CStr (I)
Next
Response. Write Join (a, vbCrLf)
Response. Write timer-t
Erase
%>
Speed can be combined with php (although it is still not fast), another use is s = Join (Array ("1", "2 ", "3 ",....., "9999 "))
The speed is still much faster than "1" & "2" & "3" &... & "9999"

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.