https://gitlab.synchro.net/main/sbbs/-/commit/1afc7934f9f3314130470bba
Modified Files:
exec/load/cfglib.js src/sbbs3/js_file.cpp
Log Message:
File.iniGetObject/iniGetAllObjects: add strings option; fast cfglib reads
cfglib.js read file.ini's viewer, tester, extractor and compressor
sections one key at a time, with iniGetSections(), iniGetKeys() and iniGetValue(). Each of those calls reads and parses the whole file: on a
BBS with a thousand-plus directories (a 484 KB file.ini) that was about 88
full parses, around 10 seconds, and several more under CPU load. Every user_settings.js run paid it.
iniGetObject() and iniGetAllObjects() now accept an optional trailing
Boolean, strings, which returns each value as the string in the file,
not converted to a number or Boolean. cfglib.js reads each handler type
with one iniGetAllObjects() call using it, keeping the values intact for writing back (e.g. extension=001), as 55e7dc10b1 intended.
Introduced in 55e7dc10b1.
Co-Authored-By: Claude Opus 5.5 <
noreply@anthropic.com>
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net