Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why one code works, while other doesn't?
Message
From
24/01/2001 13:31:50
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00466654
Message ID:
00468057
Views:
35
>If files are sitting on the local drive, the second approach works faster (difference about 1 sec.). If they are located on the NetWork drive, the first approach is faster ~3sec. File is 5MB.
>
>I also can not find the optimum size in fread().

When I said 'round numbers', I meant ROUND, like 2048, 4096, 8192, 16384, 32768, 65536 and such :). With numbers which just have zeros when written in decimal, I wouldn't know which would give you better alignment and less overhead (or does it matter at all - simple matter of network being more or less loaded at some point may ruin your benchmarking).

I figure you'd need a little more testing, probably with the buffer size about four times bigger each time, to find what suits your OS/network the best. I can't imagine any rule here, it all depends.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform