Re: get the actual size of a file

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



"Stephan Steiner" <steiner@xxxxxxxxxxx> wrote in message news:<u#upUQrPFHA.3076@xxxxxxxxxxxxxxxxxxxx>...
> [...]
>
> Thanks a bunch for all your valuable suggestions. I have been using rather
> large buffers that I have reduced considerably now.
>
> Regards
> Stephan

During some work on a similar problem I've made some little
benchmarking:

File size approx. 110 MB, 2.4GHz, 1GB RAM, FW 1.1:

Method MM:SS

File.Copy = 1:41
FileStream = 1:17
FS with 10K = 1:24
FS with 1K = 1:46

I guess that less memory will outperform if swapping starts and
smaller chunks will reduce this effect.
Nethertheless, copying with OS alone was about 1:00, which is bit
faster, indeed.
This was only a short test, not a scientific proven method.

-Joerg
www.joerg.krause.net
.



Relevant Pages