• src/sbbs3/js_global.c nopen.c nopen.h writemsg.cpp src/xpdev/dirwrap.c

    From Rob Swindell@1:103/705 to Git commit to sbbs/master on Wed Sep 9 17:45:55 2020
    https://gitlab.synchro.net/sbbs/sbbs/-/commit/047ca2f866e31c2d027ce6a0
    Modified Files:
    src/sbbs3/js_global.c nopen.c nopen.h writemsg.cpp src/xpdev/dirwrap.c dirwrap.h
    Log Message:
    Replace fcopy with CopyFile (Win32 API function) on Windows.Thanks to Wilfred van Velzen (2:280/464) for the tip. CopyFile() reducedthe 1GB file copy test (from and to CIFS/SMB) duration from 37 secondsto 5 seconds with very low CPU utilization!Created a wrapper for non-Windows OSes in xpdev/dirwrap. This is wherenon-Windows-OS-specific optimized versions may appear in the future,but for now it's just the previous fcopy() implementation (using a 256KBstack buffer). sbbs doesn't actually copy files very often, so thisisn't as big of a deal as one might assume. The JavaScript globalmethod: file_copy() also benefits from these improvements, so anyscripts that use it (e.g. tickit.js) will also benefit. binkit.js hasits own file-copy logic (using a 2MB buffer), so no change there.
    --- SBBSecho 3.11-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell@1:103/705 to Git commit to sbbs/master on Wed Sep 9 21:01:09 2020
    https://gitlab.synchro.net/sbbs/sbbs/-/commit/8c98fb88fa259fe03865aa7b
    Modified Files:
    src/sbbs3/js_global.c nopen.c nopen.h writemsg.cpp src/xpdev/dirwrap.c dirwrap.h
    Log Message:
    Merge branch 'master' of gitlab.synchro.net:sbbs/sbbs
    --- SBBSecho 3.11-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)