diff --git a/scripts/source/files/arrays/function_manifest.sh b/scripts/source/files/arrays/function_manifest.sh index f09e73d..a35b3eb 100644 --- a/scripts/source/files/arrays/function_manifest.sh +++ b/scripts/source/files/arrays/function_manifest.sh @@ -722,30 +722,6 @@ LP_EAGER_FILES=( "docker/type_switcher/swap_docker_type.sh" "migrate/migrate_url_rewrite.sh" "setup/setup_lock.sh" - "source/files/arrays/files_app.sh" - "source/files/arrays/files_backup.sh" - "source/files/arrays/files_checks.sh" - "source/files/arrays/files_cli.sh" - "source/files/arrays/files_config.sh" - "source/files/arrays/files_crontab.sh" - "source/files/arrays/files_database.sh" - "source/files/arrays/files_docker.sh" - "source/files/arrays/files_function.sh" - "source/files/arrays/files_install.sh" - "source/files/arrays/files_logs.sh" - "source/files/arrays/files_menu.sh" - "source/files/arrays/files_migrate.sh" - "source/files/arrays/files_network.sh" - "source/files/arrays/files_os.sh" - "source/files/arrays/files_peer.sh" - "source/files/arrays/files_restore.sh" - "source/files/arrays/files_setup.sh" - "source/files/arrays/files_source.sh" - "source/files/arrays/files_ssh.sh" - "source/files/arrays/files_start.sh" - "source/files/arrays/files_update.sh" - "source/files/arrays/files_webui.sh" - "source/files/arrays/function_manifest.sh" ) # Autoload stubs — one per public function. First call sources the diff --git a/scripts/source/files/generate_function_manifest.sh b/scripts/source/files/generate_function_manifest.sh index 221f8c3..efa1802 100644 --- a/scripts/source/files/generate_function_manifest.sh +++ b/scripts/source/files/generate_function_manifest.sh @@ -55,6 +55,14 @@ should_skip() { case "$rel" in source/files/app_files.sh|source/files/cli_files.sh) return 0 ;; source/files/generate_arrays.sh|source/files/generate_function_manifest.sh) return 0 ;; + # The manifest itself is sourced explicitly by the lazy loader — don't + # also flag it eager, that would double-source (28ms × 2 ≈ wasted 55ms). + source/files/arrays/function_manifest.sh) return 0 ;; + # The files_*.sh arrays are only meaningful for the eager loader's + # iteration. Lazy mode doesn't iterate them, so eager-sourcing them + # under lazy mode is pure overhead. Skip from the scan; the eager + # loader still sources them via its own existing path. + source/files/arrays/files_*.sh) return 0 ;; source/loading/check_files.sh|source/loading/initilize_files.sh|source/loading/scan_files.sh) return 0 ;; source/load_sources.sh|source/paths.sh) return 0 ;; webui/data/generators/webui_test_generate.sh) return 0 ;;