zpmod
b19981f
High-performance Zsh module for script optimization and filesystem helpers
|
Minimize startup and sourcing time by using zsh's wordcode compiled form (.zwc
) while remaining transparent to users.
source
/ .
call..zwc
sibling..zwc
is newer or equal timestamp → load compiled via custom_check_dump_file
.ZI_MOD_DEBUG=1
) → invoke zcompile
equivalent path to produce new .zwc
.stat()
timestamps compare source vs compiled file modification times.
When ZI_MOD_DEBUG=1
module logs reasons for skipping compilation (permissions, missing access) and may attempt compilation even if not strictly necessary for diagnostics.
.zwc
: module warns (if debug) and falls back to interpretive path.