Startup was dominated by loading completion scripts that were rarely used.
Conversation
Turn 1 — User
New terminals take almost a second to become usable.
Turn 2 — Assistant
Profiled the startup file. Most of the time was loading completion scripts eagerly, including several for tools not installed on this machine.
They are now loaded lazily on first use of the command, and missing tools are skipped rather than failing silently. Startup went from roughly nine hundred milliseconds to under two hundred.
Turn 3 — User
Do completions still work on first use?
Turn 4 — Assistant
Yes — the first tab press pays the load cost once, then it is cached for the session. Noticeable only if you are looking for it.
Subjects
- [[Shell]]
- [[Configuration]]