Zsh Mailing List Archive
Messages sorted by:
Is large `if' or `case' statement a potential cause of a slow-down?
- X-seq: zsh-workers 42989
- From: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Is large `if' or `case' statement a potential cause of a slow-down?
- Date: Tue, 12 Jun 2018 19:27:59 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=gJzqF0Qk23lDkPAlzpNQ3nIL5tliczpJydA3fALabDU=; b=H1cdZSMdXa+qDoTap36V5k7e2UNb6R6Z1+j0Vt9YCfH3sTs2TBgmxdA8xF1Bx3/f2p jMRLj3VEAHQB5uwNtMPttVj2aFYZIeJ5xnWa3pb19wPm2DjZG4EKGBzO8pJLCwXVT6y7 xj+b71AJouWrPL3tUPA7Kq28WZ9Hy4bSctw55mPc9QsicUShRcwjnayxchlA1zWpjw39 t5qSHDJlg8hmycTw44KU2WlLI2MkAd+5LY8zfKoZvof1idOPeoEdG/Ms4WkP4EAOJ0dd 9yLjp5YkGoIkfbT5C+Ur6bjtFW+POh9OTarXtjKyvNYpttRg0IsZmtSLPMYy9/zTE2bn bpqw==
- List-help: <mailto:email@example.com>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:firstname.lastname@example.org>
- List-unsubscribe: <mailto:email@example.com>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
a project (f-sy-h) suffers from what I call a "big-loop". I will
rewrite it with a trick soon to check, but I though, why guess that a
big loop, `if' or `case' are not easy for Zsh engine, while I can ask.
Does someone know a potential marauder script constructs, more
difficult than less difficult for Zsh execution? Is big-loop/if/case
among them? I recall Bart mentioned that long assignment statements in
zcompdump are pretty much slow, IIRC.
On this occasion, I would ask when are functions compiled? Before
first use, or when defining, or maybe different from these both?
Functions in .zwc digest are of course compiled and do not need
compilation at all (?).
To bump up the stake: when sourcing a compiled script that defines
functions, will there be a wordcode for those function definitions and
will Zsh use it avoiding compilation?
Messages sorted by: