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

Possibly Related Threads…
Thread Author Replies Views Last Post
  Linux Lubuntu INKEY$ issue TempodiBasic 7 651 09-09-2025, 02:53 PM
Last Post: hsiangch_ong
  CrowdStrike issue also with Linux bert22306 9 1,943 07-24-2024, 08:14 PM
Last Post: Pete
  Issue differentiating between Ctrl-DEL and Ctrl-Backspace dano 4 982 05-31-2024, 04:29 PM
Last Post: SMcNeill
  Is this an issue? bobkreid 11 2,663 07-04-2022, 03:48 AM
Last Post: DSMan195276
  Another issue: Changing one variable instantly changes the value of another variable hanness 14 2,468 06-17-2022, 05:20 PM
Last Post: bplus

Forum Jump:


Users browsing this thread: 1 Guest(s)