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

    From Rob Swindell (on Debian Linux)@VERT to Git commit to main/sbbs/master on Thu Nov 19 11:51:45 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/a324eb90f5f5fd77fadded77
    Modified Files:
    docs/v322_new.md src/sbbs3/listfile.cpp
    Log Message:
    listfiles(): skip directories with no new files before a List Files module

    In a new-file scan, listfiles() invoked a configured List Files loadable
    module for every directory, before its own (fast) check for new files.
    Starting a JavaScript module costs about 25 ms per directory, so a scan
    of hundreds of directories with few new files took many seconds longer
    with a module than with the built-in lister, for no output.

    The new-file check (and the update of the user's new-file scan time) now
    comes first, and a directory with no new files returns 0 without
    invoking the module. A module is still invoked, with the same arguments,
    for every directory that has new files and for every other kind of
    listing.

    Note for DDFileLister (Nightfox) users: installed as the List Files
    module, it printed "No new files found in <library>: <directory>" for
    each directory without new files during a new-file scan; it is no
    longer invoked for those directories, so those lines no longer appear,
    matching the built-in lister. Its use as the Scan Dirs module is
    unaffected.

    Fixes #1359

    Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Debian Linux)@VERT to Git commit to main/sbbs/master on Mon Nov 30 21:24:10 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/d725bc28691f676739c6153f
    Modified Files:
    docs/v322_new.md src/sbbs3/listfile.cpp
    Log Message:
    listfiles(): skip directories with no matching filenames before a module

    A filename search across all libraries (scandirs() with a filespec) calls listfiles() for every directory the user can access, and with a List Files loadable module configured, each call invoked the module: a new script
    scope and its libraries, about 30 ms per directory before any work. With
    1,405 directories that was over a minute per search, nearly all of it
    spent in directories with nothing to list.

    Before invoking the module, read only the directory's filename index and
    return if no name matches the (widened) filespec, as a324eb90f5
    (were-7-ease, 2026-11-19) does for new-file scans. Searches for all files
    and description text searches (FL_FIND) still invoke the module in every directory.

    Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Debian Linux)@VERT to Git commit to main/sbbs/master on Tue Dec 1 01:01:49 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/134743c5562176983335a642
    Modified Files:
    docs/v322_new.md src/sbbs3/listfile.cpp
    Log Message:
    Terminal Server: skip text-search directories with no matching files

    When a List Files loadable module is configured, a file text search
    invoked the module for every directory, which is slow across all
    libraries. Like the filename-search check added in d725bc2869
    (claims-27-gift, 2026-11-30), load each directory's files with extended descriptions and match the compiled search expression first, invoking the module only when at least one file matches. The matching uses the same
    fields as listfiles.js (name, description, extended description, tags,
    author and author organization).

    An empty search expression no longer invokes the module either: both
    listers display nothing for one.

    Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Debian Linux)@VERT to Git commit to main/sbbs/master on Tue Dec 1 01:47:44 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/cdaab0f494494a4c12d6b22b
    Modified Files:
    docs/v322_new.md src/sbbs3/listfile.cpp
    Log Message:
    Terminal Server: skip View File Info module for dirs with no such file

    Downloading or viewing info on a file that isn't in the current directory
    calls listfileinfo() for each directory of the library (or of all
    libraries), and with a View File Info loadable module configured, that
    invoked the module for every directory. As the List Files module already
    is for filename searches, check the directory's filename index first and
    invoke the module only when a file name matches the filespec.

    The filename-index check moves into dir_has_filenames(), now shared by listfiles() and listfileinfo().

    Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net