Compare commits
No commits in common. "1a8c377d7d510c2cd941bf2e347072020f3808ea" and "eaf5d12421ff9c1bc22c905371e0f23dca7decd6" have entirely different histories.
1a8c377d7d
...
eaf5d12421
@ -41,19 +41,9 @@ fi
|
|||||||
|
|
||||||
# For starting the script
|
# For starting the script
|
||||||
if [[ $init_run_flag == "true" ]]; then
|
if [[ $init_run_flag == "true" ]]; then
|
||||||
# For loading LibrePortal as a long-running process (task processor,
|
# For loading LibrePortal
|
||||||
# WebUI service). Eager loading wins here — the process keeps running,
|
|
||||||
# so first call to anything should be hot. LP_LAZY stays unset.
|
|
||||||
sourceCheckFiles "run";
|
sourceCheckFiles "run";
|
||||||
elif [[ $init_run_flag == "false" ]]; then
|
elif [[ $init_run_flag == "false" ]]; then
|
||||||
# For one-shot CLI invocations. Default LP_LAZY=1 so short commands
|
# For using the CLI
|
||||||
# (`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
|
|
||||||
sourceCheckFiles "cli";
|
sourceCheckFiles "cli";
|
||||||
fi
|
fi
|
||||||
Loading…
x
Reference in New Issue
Block a user