FSO and speed
-
Hi I am using FSO (Microfoft File System Object dll) to move TIF image files from a network shared folder A to another network share B in vb6. If I want to move a single file from A to B, does the number of images in either folder matter in terms of effects on speed? I am experiencing an huge slug in speed if I increase the number of files in A, even if I want to move only a small fraction of the files in A to B. My thinking is that FSO actually has to search for an image before moving it. Is there a difference to FSO (or Windows 2000 file system) if folder A has 20,000 files compared to when folder A has 100 TIF files? :rose::rose: 1fm1fu
-
Hi I am using FSO (Microfoft File System Object dll) to move TIF image files from a network shared folder A to another network share B in vb6. If I want to move a single file from A to B, does the number of images in either folder matter in terms of effects on speed? I am experiencing an huge slug in speed if I increase the number of files in A, even if I want to move only a small fraction of the files in A to B. My thinking is that FSO actually has to search for an image before moving it. Is there a difference to FSO (or Windows 2000 file system) if folder A has 20,000 files compared to when folder A has 100 TIF files? :rose::rose: 1fm1fu
If your using the FSO Folder class, then yes, there is a huge difference in speed. This is because the Folder object is enumerating all the files in the folder to populate its Files collection. If your using the FSO.CopyFile method, no there shouldn't be a huge difference in speed, but there will be a difference. Unless you have those 20,000 files sitting on a FAT volume...please say it isn't so! RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome