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.