zsh-workers
 help / color / mirror / code / Atom feed
* Any chances "autoload -w digest.zwc" can be faster?
@ 2017-07-04 15:12 Sebastian Gniazdowski
  0 siblings, 0 replies; only message in thread
From: Sebastian Gniazdowski @ 2017-07-04 15:12 UTC (permalink / raw)
  To: zsh-workers

Hello
I extract functions from .plugin.zsh files, then compile them as digest: zcompile -Uz lexicon.zwc functions/*

Checked that this line:

autoload -w ~/.zplugin/lexicon.zwc

takes 0.12 ms – less than a millisecond. But overall time of "zsh -i -c exit" doesn't change – is 250 ms.

The function extraction is pretty cool, (z) flag guarantees correct extraction. So I can do autoload of functions for lazy authors, not using autoload, defining functions in the sourced file (plugin.zsh).


This is cool but performance gain is expected from this. Any chances loading functions from digest can be optimized?
--  
Sebastian Gniazdowski
psprint /at/ zdharma.org


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-07-04 15:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-07-04 15:12 Any chances "autoload -w digest.zwc" can be faster? Sebastian Gniazdowski

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).