Skip to content
Snippets Groups Projects
  1. Sep 13, 2020
  2. Sep 12, 2020
  3. Sep 11, 2020
  4. Sep 10, 2020
  5. Sep 09, 2020
    • Rob Swindell's avatar
      Replace fcopy with CopyFile (Win32 API function) on Windows. · 2b892eae
      Rob Swindell authored
      Thanks to Wilfred van Velzen (2:280/464) for the tip. CopyFile() reduced
      the 1GB file copy test (from and to CIFS/SMB) duration from 37 seconds
      to 5 seconds with very low CPU utilization!
      Created a wrapper for non-Windows OSes in xpdev/dirwrap. This is where
      non-Windows-OS-specific optimized versions may appear in the future,
      but for now it's just the previous fcopy() implementation (using a 256KB
      stack buffer). sbbs doesn't actually copy files very often, so this
      isn't as big of a deal as one might assume. The JavaScript global
      method: file_copy() also benefits from these improvements, so any
      scripts that use it (e.g. tickit.js) will also benefit. binkit.js has
      its own file-copy logic (using a 2MB buffer), so no change there.
      2b892eae
    • Rob Swindell's avatar
      Added special finger request: json-dbs · e4dee8f8
      Rob Swindell authored
      Returns a list of publicly accessible JSON db's from ctrl/json-service.ini
      (assumes the JSON service is not just listening on localhost).
      Sysop can opt-out by setting json_db=false in the [fingerservice]
      section of modopts.ini
      
      Now mcmlxxix has a reason to expose his BBS to the world's fingers.
      e4dee8f8
    • Rob Swindell's avatar
      Improve file copy (fcopy()) performance by more than an order of magnitude. · ee44592a
      Rob Swindell authored
      Using a 256KB read buffer for copying files (rather than one byte at a time).
      Apparently calling fread() is not the same as a bunch of calls to fgetc()
      after all. Or maybe it was the many calls to fputc() being replaced with
      fwrite(). Or maybe it was both. Anyway, decreased the time to copy a 1GB
      file from and to a Samba share over a Gb Ethernet network from 13 minutes
      to less than a minute. This matters when sbbs is backing up your data/mail
      base and the files are big. The mail base is locked while being backed up
      and the longer it takes to back up, the longer the mail base is locked and
      no mail can be received, read or sent during that time.
      ee44592a
    • Rob Swindell's avatar
      Spinning cursor over the hardware cursor - disabled. · a0d1e8d1
      Rob Swindell authored
      Define SPINNING_CURSOR_OVER_HARDWARE_CURSOR to enable this experimental
      feature. I'm not sure I like it better than the way the spinning cursor
      has been displayed for decades (to the left of the hardware cursor).
      a0d1e8d1
    • Rob Swindell's avatar
Loading