Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Why sourcing a file is not faster than doing a loop with eval, zle -N



On 17 czerwca 2017 at 16:56:12, Sebastian Gniazdowski (psprint@xxxxxxxxxxx) wrote:
> Time for zcompiled ~/.fsh_cache is 0.375 in new test (previous: 0.383). So it's 20 ms  
> compared to slower normal read 0.396. Almost reached the goal of 40 ms. For someone having  
> startup time 200-250 ms the 40 ms would matter.

I've checked with zprof how much does the loop take normally:

19,41    19,41   36,83%     19,41    19,41   36,83%  _zsh_highlight_bind_widgets

It varies between 16 ms and 20 ms. So the gain from zcompiled .fsh_cache seems to be maximal.

--  
Sebastian Gniazdowski
psprint /at/ zdharma.org



Messages sorted by: Reverse Date, Date, Thread, Author