From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-workers@sunsite.dk
Subject: Re: replacement slowdown
Date: Sat, 23 Apr 2005 16:07:21 +0000 [thread overview]
Message-ID: <1050423160721.ZM4469@candle.brasslantern.com> (raw)
In-Reply-To: <20050423031907.GA27233@scowler.net>
On Apr 22, 11:19pm, Clint Adams wrote:
}
} Well, I haven't profiled 4.2.1, but in 4.2.5, it's spending all its time
} in ztrsub (called 57093 times) in pattryrefs.
Is that a profile for the entire shell from startup to exit, or just
for the ${(f)"$(</tmp/blah)"//,/x} substitution?
Is zsh compiled with debugging (that is, with the DEBUG macro defined)?
ztrsub() shouldn't be particularly expensive, but it's a bit more so in
debugging mode.
Also, there's no loop in pattryrefs(), so the fact that it's in ztrsub()
may be misleading. There are exactly 2 calls to ztrsub() in there.
What's calling pattryrefs() 28000+ times? Is that how many lines there
are in /tmp/blah?
next prev parent reply other threads:[~2005-04-23 16:07 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-22 23:23 Clint Adams
2005-04-23 3:14 ` Bart Schaefer
2005-04-23 3:19 ` Clint Adams
2005-04-23 16:07 ` Bart Schaefer [this message]
2005-04-23 16:26 ` Clint Adams
2005-04-23 17:12 ` Bart Schaefer
2005-04-24 0:33 ` Peter Stephenson
2005-04-24 0:47 ` PATCH: " Bart Schaefer
2005-04-24 3:32 ` Bart Schaefer
2005-04-24 16:46 ` Bart Schaefer
2005-04-23 16:25 ` Bart Schaefer
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=1050423160721.ZM4469@candle.brasslantern.com \
--to=schaefer@brasslantern.com \
--cc=zsh-workers@sunsite.dk \
/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).