Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Issue saving across VPN
#5
Sounds like the system isn't doing multiple transfers.  With the 4000 file output, it's connecting to the drive and having to write a line of data, do whatever confirmation it does to make certain the data transferred is valid, and then finally moves on to do the next line of data.   With the second method, it's transfering the whole file in one pass, then doing the validation, which saves a lot of time overall.

We see a similar type of behavior to this in OPEN FOR INPUT, which has to read a file one byte at a time, resulting in many many many unnecessary disk reads.  (Whereas reading AS BINARY reads data at the sector/clusters size of your drive -- let's say 4096 bytes for example -- which means you're doing in one disk read what INPUT takes 4096 disk reads and transfers to do.

IIRC, QB64 does a very similar method of drive writing such as your first example -- one line of a program at a time, dumped via a simple DO..LOOP.  It's never been an issue before, in the past, with saving to local drives, so nobody's ever bothered to optimize it.  Changing that save routine to using a single PUT statement as you've done in your second example should be easy enough to do.   It's late here tonight, but I'll take a look in our internals tomorrow and see about swapping us over to a single binary write of the whole file, and then you can test it out later and see if it makes much of a difference on your system.  Smile
Reply


Messages In This Thread
Issue saving across VPN - by dano - 11-07-2023, 03:08 AM
RE: Issue saving across VPN - by TerryRitchie - 11-07-2023, 03:20 AM
RE: Issue saving across VPN - by SMcNeill - 11-07-2023, 03:43 AM
RE: Issue saving across VPN - by dano - 11-07-2023, 04:20 AM
RE: Issue saving across VPN - by SMcNeill - 11-07-2023, 04:48 AM
RE: Issue saving across VPN - by SpriggsySpriggs - 11-07-2023, 01:40 PM
RE: Issue saving across VPN - by SMcNeill - 11-07-2023, 03:17 PM
RE: Issue saving across VPN - by SMcNeill - 11-07-2023, 03:39 PM
RE: Issue saving across VPN - by SpriggsySpriggs - 11-07-2023, 05:08 PM
RE: Issue saving across VPN - by SMcNeill - 11-07-2023, 05:50 PM
RE: Issue saving across VPN - by dano - 11-07-2023, 06:29 PM
RE: Issue saving across VPN - by TerryRitchie - 11-07-2023, 06:38 PM
RE: Issue saving across VPN - by SpriggsySpriggs - 11-07-2023, 07:37 PM
RE: Issue saving across VPN - by SMcNeill - 11-07-2023, 07:45 PM
RE: Issue saving across VPN - by dano - 11-08-2023, 03:44 PM
RE: Issue saving across VPN - by SpriggsySpriggs - 11-07-2023, 08:24 PM
RE: Issue saving across VPN - by SMcNeill - 11-08-2023, 01:53 AM
RE: Issue saving across VPN - by SMcNeill - 11-17-2023, 03:24 PM
RE: Issue saving across VPN - by dano - 11-17-2023, 07:11 PM
RE: Issue saving across VPN - by SMcNeill - 11-17-2023, 08:13 PM
RE: Issue saving across VPN - by dano - 11-30-2023, 03:50 AM
RE: Issue saving across VPN - by SMcNeill - 11-30-2023, 04:44 AM



Users browsing this thread: 1 Guest(s)