zsh-users
 help / color / mirror / code / Atom feed
From: Nick Cross <zsh@goots.org>
To: Roman Perepelitsa <roman.perepelitsa@gmail.com>,
	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 10:34:54 +0100	[thread overview]
Message-ID: <ddeeacc6-ee70-e6e3-8635-5f201a1a1c81@goots.org> (raw)
In-Reply-To: <CAN=4vMqLjxe-BiKfexN+oWri6X8yh_FpCvDJd+1brMcAu80xkQ@mail.gmail.com>

On 17/07/2019 06:49, Roman Perepelitsa wrote:
> 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.
> 

Really? Thats interesting. Is there any benchmarks available showing 
this? So is it actually possible to do this?

Nick

  reply	other threads:[~2019-07-17  9:35 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
2019-07-17  9:34       ` Nick Cross [this message]
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=ddeeacc6-ee70-e6e3-8635-5f201a1a1c81@goots.org \
    --to=zsh@goots.org \
    --cc=rayandrews@eastlink.ca \
    --cc=roman.perepelitsa@gmail.com \
    --cc=zsh-users@zsh.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).