How to Improve the performance when FileSystemObject is used in ASP

Source: Internet
Author: User

Performance problems caused by attributes are tested by type. The performance is greatly improved when type is removed, that is, type attribute display, subsequent tests also prove that the use of the type attribute causes performance problems.

After thinking about it, the reason for the low performance caused by type is that the reference of the type attribute is the specific type information of the file, that is, what we see in the resource browser, for example, the TXT file type is displayed as "Text Document", but this type of information is stored in the system and associated with the file extension. When the type attribute is used in FSO, FSO needs to retrieve the type name corresponding to the extension in the system for each file object, which greatly reduces the performance.

Therefore, if you do not use the type attribute of the file or folder object when using FileSystemObject, try not to use it.

I hope this article will help you.

Related Article

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.