From: Roman Perepelitsa <roman.perepelitsa@gmail.com>
To: Nick Cross <zsh@goots.org>
Cc: Ray Andrews <rayandrews@eastlink.ca>, Zsh Users <zsh-users@zsh.org>
Subject: Re: Nested function definition question
Date: Wed, 17 Jul 2019 07:49:28 +0200 [thread overview]
Message-ID: <CAN=4vMqLjxe-BiKfexN+oWri6X8yh_FpCvDJd+1brMcAu80xkQ@mail.gmail.com> (raw)
In-Reply-To: <8c968d3a-2a7a-d16c-25f4-2fc13cdfffa7@goots.org>
On Tue, Jul 16, 2019 at 4:45 PM Nick Cross <zsh@goots.org> wrote:
>
> I realise its interpreted and it makes little or no difference, it was
> more out of curiosity ;-)
Inlining functions makes a big difference because function calls are
very expensive in ZSH. Calling a function to do something trivial
takes ~10 times longer than doing the same thing inline.
Roman.
next prev parent reply other threads:[~2019-07-17 5:50 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-07-16 8:43 Nick Cross
2019-07-16 14:13 ` Ray Andrews
2019-07-16 14:44 ` Nick Cross
2019-07-17 5:49 ` Roman Perepelitsa [this message]
2019-07-17 9:34 ` Nick Cross
2019-07-17 9:54 ` Roman Perepelitsa
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAN=4vMqLjxe-BiKfexN+oWri6X8yh_FpCvDJd+1brMcAu80xkQ@mail.gmail.com' \
--to=roman.perepelitsa@gmail.com \
--cc=rayandrews@eastlink.ca \
--cc=zsh-users@zsh.org \
--cc=zsh@goots.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).