How to improve performance when using FileSystemObject in ASP _ Application techniques
Source: Internet
Author: User
A test of what might be the properties caused by a performance problem, in the removal of type is the types of attributes display, the performance has been greatly improved, and then the test also proved that the Type property is used to cause performance problems.
After a moment's careful thought, the reason for the low performance of type should be that the reference to the type attribute is given to the specific type of file, which is what we see in the resource browser, such as the type of TXT file is displayed as "text document", but this type of information is stored in the system. Associated with a file name extension. When using the type attribute in the FSO, for each file object, the FSO needs to retrieve the name of the type corresponding to the extension in the system according to the extension, thus greatly reducing the performance.
Therefore, when using FileSystemObject, if you can not use the type attribute of the file or folder object, try not to use it.
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