Compare commits

..

No commits in common. "1a8c377d7d510c2cd941bf2e347072020f3808ea" and "eaf5d12421ff9c1bc22c905371e0f23dca7decd6" have entirely different histories.

View File

@ -41,19 +41,9 @@ fi
# For starting the script
if [[ $init_run_flag == "true" ]]; then
# For loading LibrePortal as a long-running process (task processor,
# WebUI service). Eager loading wins here — the process keeps running,
# so first call to anything should be hot. LP_LAZY stays unset.
# For loading LibrePortal
sourceCheckFiles "run";
elif [[ $init_run_flag == "false" ]]; then
# For one-shot CLI invocations. Default LP_LAZY=1 so short commands
# (`libreportal help`, `peer list`, etc.) only source the ~8 files with
# top-level side effects + the function manifest stubs, deferring the
# ~420 pure function libs until something actually calls them. ~34%
# wall-time savings on a no-op command in measurement (Phase 4 of the
# lazy-load work). Explicit `LP_LAZY=0 libreportal …` still works for
# debugging or for catching a stale manifest.
: "${LP_LAZY:=1}"
export LP_LAZY
# For using the CLI
sourceCheckFiles "cli";
fi