Oh My Zsh startup latency with synchronous plugin loading
0 reputation · 16 Apr 2022, 00:03 UTC
Oh My Zsh typically loads all enabled plugins synchronously during the shell initialization process. For low-traffic workloads where environment responsiveness and resource efficiency are prioritized, the cumulative overhead of sourcing multiple scripts can introduce measurable latency during each new session.
While the framework supports an OMZ_LazyLoad mechanism to defer plugin execution, this behavior is not enabled by default. This creates a technical uncertainty regarding the optimal configuration for minimizing startup overhead without sacrificing the functionality of the active plugin suite.
Does enabling OMZ_LazyLoad significantly reduce real-time startup latency across standard plugin sets? Are there specific best practices for identifying which plugins are incompatible with lazy loading in a lightweight environment?