Can anybody tell me what the speed differeneces are? Is the fso faster then get, put? And faster then API's? And how much faster?
Printable View
Can anybody tell me what the speed differeneces are? Is the fso faster then get, put? And faster then API's? And how much faster?
I can't tell you how much faster, but when working with a lot of files, the API (and get/put for that matter), leave the filesystemobject in the dust. Also, if you are developing a program for distribution, the API or Get/Put are more desireable, because they lack the hassle of including one more runtime file.
I also do not know, but I would like to point out that API would usually be faster than other means.
The reason for Objects like FSO is not to make runtime faster. The goal of OO programming is to make code more logical, easier to maintain and more readable for another programmer.
And since we are using VB and the like instead of Assembler, I guess ease of development is important to us.
So my advice is to use API if runtime speed is essential, but use Objects VB provides when future maintenance is essential.
I guess you would use API if you were doing alot of reading/writing to disk.
Cheers
Thanks for the replies. I will use the API's in my program.