Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Issue saving across VPN
#18
@dano Could you give the following code a test run and see how it works on your network device?   Just change the filenames to your network drive (don't forget to clean them up afterwards), and let me know what the time results are for you.

Note:  This may take a while, if a 4000 line program takes 5+ minutes for you.  You might want to let this run while taking a break for lunch, or sleeping overnight.  Tongue

Code: (Select All)
crlf$ = CHR$(13) + CHR$(10)

OPEN "temp.txt" FOR OUTPUT AS #1
OPEN "temp2.txt" FOR BINARY AS #2
OPEN "temp3.txt" FOR BINARY AS #3
OPEN "temp4.txt" FOR BINARY AS #4

a$ = "This is just one long line of junk to test some basic write times."
FOR i = 1 TO 10
    a$ = a$ + a$
NEXT

PRINT LEN(a$)
END

t# = TIMER
FOR j = 1 TO 10000
    PRINT #1, a$
NEXT
t1# = TIMER

FOR j = 1 TO 10000
    PUT #2, , a$
    PUT #2, , crlf$
NEXT
t2# = TIMER


FOR j = 1 TO 1000
    b$ = b$ + a$ + crlf$
NEXT
PUT #3, , b$
t3# = TIMER

FOR i = 1 TO 1000
    c$ = ""
    FOR j = 1 TO 10
        c$ = c$ + a$ + crlf$
    NEXT
    PUT #4, , c$
NEXT
t4# = TIMER



CLOSE
PRINT USING "#####.##### seconds with OUTPUT"; t1# - t#
PRINT USING "#####.##### seconds with BINARY"; t2# - t1#
PRINT USING "#####.##### seconds with BINARY (join/1 write) (estimated as the loops were 1/10th the size)"; (t3# - t2#) * 100
PRINT USING "#####.##### seconds with BINARY (batch join/write)"; t4# - t3#
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 672 09-09-2025, 02:53 PM
Last Post: hsiangch_ong
  CrowdStrike issue also with Linux bert22306 9 1,993 07-24-2024, 08:14 PM
Last Post: Pete
  Issue differentiating between Ctrl-DEL and Ctrl-Backspace dano 4 1,006 05-31-2024, 04:29 PM
Last Post: SMcNeill
  Is this an issue? bobkreid 11 2,714 07-04-2022, 03:48 AM
Last Post: DSMan195276
  Another issue: Changing one variable instantly changes the value of another variable hanness 14 2,538 06-17-2022, 05:20 PM
Last Post: bplus

Forum Jump:


Users browsing this thread: 1 Guest(s)