• docs/v322_new.md src/sbbs3/js_file.cpp

    From Rob Swindell (on Debian Linux)@1:103/705 to Git commit to main/sbbs/master on Sat Aug 1 23:40:04 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/7a0dabc5613b3f1a5e4ff8be
    Modified Files:
    docs/v322_new.md src/sbbs3/js_file.cpp
    Log Message:
    Parse an .ini once in File.iniGetAllObjects()

    It asked for each section's keys by name, and that lookup scans the file
    from the top -- so the cost was O(sections * lines). SyncArcade's lobby
    reads games.ini on every run for the cabinet titles, and at 4740 sections
    that read took two seconds on an idle machine; a loaded one paid seven,
    which reads as the lobby rescanning its ROMs when it is doing nothing of
    the kind.

    Parse the file into per-section lists once instead, the way scfglib1.c
    and scfglib2.c already read the configuration: 2005ms -> 66ms on that
    file. The section list still comes from iniGetSectionList(), so a
    duplicate section name is still collapsed to its first occurrence.

    Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
    --- SBBSecho 3.37-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell (on Windows 11)@1:103/705 to Git commit to main/sbbs/master on Mon Nov 16 21:58:16 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/6e8fd1d1ed5a73b9a1542431
    Modified Files:
    docs/v322_new.md src/sbbs3/js_file.cpp
    Log Message:
    JS File.position: support offsets beyond 4GB

    The position setter converted the value to a 32-bit unsigned integer (370b79dd7a (2021-04-22)) and both accessors used fseek()/ftell(), so
    a script could neither seek past 4GB in a larger file nor read back
    its position there: an assigned offset silently wrapped modulo 2^32.
    Example: a script walking the atoms of a 37GB MP4 file could not reach
    the "moov" atom stored at the end of the file.

    Take the value as a number and use fseeko()/ftello(). A negative or
    non-numeric value now seeks to the start of the file.

    Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
    --- SBBSecho 3.38-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)