Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Issue saving across VPN
#4
Terry - No, I do not have any other issues with any other programs including Office.  Everything saves fast, not quite as fast as local but pretty close.

SMcNeil - The drives in the server are all SSD flash memory so there is no lag time, and the hardware based RAID controller in use does not allow sleep functions for online drives.  Good thinking though!  (yeah, our system at work is pretty drool worthy!  10GbE fiber to the desktop too!  It is so freakin fast!)


I ran 2 different programs to save the identical information 2 different ways using QB64 and there are astounding differences:

'Program 1
Dim raw$(4000)
For x = 1 To 4000 '      load array with data
    p% = Int(Rnd * (40)) + 20
    l% = Int(Rnd * (40)) + 20
    raw$(x) = Mid$("This is a sample sentence that we will be using to generate random length strings that have pseudo random characters in them by taking a random position with a random length", p%, l%)
Next x
s# = Timer
Open "o", #1, "z:\testfile.dat"
For x = 1 To 4000 '      write data from array
    Print #1, raw$(x)
    Print x
Next x
Close #1
Print "Time Elapsed: "; Timer - s#

This one took 5 minutes and 15 seconds to write all 4000 lines.  I then changed that program just a tad so that the output file is local to drive c and it saved the file in .05 seconds.



Then I copied the file that was generated in program 1 across the VPN to drive c: of the local machine and that took < 1 second.  I then used the following program to copy it back to z: but used binary mode instead:

'Program 2
s# = Timer
fA = FreeFile
Open "c:\temp\testfile.dat" For Binary As fA
fB = FreeFile
Open "z:\testfile.dat" For Binary As fB
fbc$ = Space$(LOF(fA))
Get fA, , fbc$
Put fB, , fbc$
Close fA
Close fB
Print "Time Elapsed: "; Timer - s#

This one finished in 1.15 seconds.


I hope this helps...
dano
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 675 09-09-2025, 02:53 PM
Last Post: hsiangch_ong
  CrowdStrike issue also with Linux bert22306 9 1,998 07-24-2024, 08:14 PM
Last Post: Pete
  Issue differentiating between Ctrl-DEL and Ctrl-Backspace dano 4 1,007 05-31-2024, 04:29 PM
Last Post: SMcNeill
  Is this an issue? bobkreid 11 2,724 07-04-2022, 03:48 AM
Last Post: DSMan195276
  Another issue: Changing one variable instantly changes the value of another variable hanness 14 2,540 06-17-2022, 05:20 PM
Last Post: bplus

Forum Jump:


Users browsing this thread: