zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-workers@zsh.org
Subject: Re: Status of optimiza tions - can have n ative buffers
Date: Sun, 5 Mar 2017 08:29:57 -0800	[thread overview]
Message-ID: <170305082957.ZM24917@torch.brasslantern.com> (raw)
In-Reply-To: <1488706321.1960459.900808664.5940C1B0@webmail.messagingengine.com>

On Mar 5,  1:32am, Sebastian Gniazdowski wrote:
}
} result from with-patch current-head run:
} 
} 29,965,124,064  arrlen_le [/usr/local/bin/zsh-5.3.1-dev-0_O2_bopt]
} 29,965,124,049  arrlen_gt [/usr/local/bin/zsh-5.3.1-dev-0_O2_bopt]
}  6,668,004,434  arrlen [/usr/local/bin/zsh-5.3.1-dev-0_O2_bopt]

Well now THAT is interesting.  Same total number of calls but now
they're split exactly half _le and half _gt.

This in turn strongly suggests that the calls are the one my patch
changed in params.c, and the one currently at line 2567 in subst.c.

If we could figure out whether these two are actually examining the
length of the same array each time, there might be a way (cache in
the struct value, as with the "arr" field?) to cut this in half.


  reply	other threads:[~2017-03-05 16:29 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-04 13:49 Status of optimizations – can have native buffers Sebastian Gniazdowski
2017-03-04 15:33 ` Sebastian Gniazdowski
2017-03-05  0:00 ` Status of optimiza tions - can have n ative buffers Bart Schaefer
2017-03-05  9:32   ` Sebastian Gniazdowski
2017-03-05 16:29     ` Bart Schaefer [this message]
2017-03-13  9:01 ` Status of optimizations – can have native buffers Sebastian Gniazdowski
2017-03-13 10:51   ` Sebastian Gniazdowski

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=170305082957.ZM24917@torch.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=zsh-workers@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).