Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Performance tests of quoting and dequoting, printf -v turned out slow
- X-seq: zsh-workers 42456
- From: Sebastian Gniazdowski <psprint@xxxxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>, Oliver Kiddle <okiddle@xxxxxxxxxxx>
- Subject: Re: Performance tests of quoting and dequoting, printf -v turned out slow
- Date: Tue, 13 Mar 2018 12:28:16 +0100
- Cc: "zsh-workers@xxxxxxx" <zsh-workers@xxxxxxx>
- In-reply-to: <CAH+w=7Z0_O2Fke5j2M3z28vfJGREyNuEcf1Fybjuh-nHRxWHYg@mail.gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <etPan.5aa22836.70671812.159ee@zdharma.org> <19380.1520696454@thecus> <CAH+w=7Z0_O2Fke5j2M3z28vfJGREyNuEcf1Fybjuh-nHRxWHYg@mail.gmail.com>
On 11 marca 2018 at 09:33:46, Bart Schaefer (schaefer@xxxxxxxxxxxxxxxx) wrote:
> On Sat, Mar 10, 2018 at 7:40 AM, Oliver Kiddle wrote:
> >
> > What may affect things is whether or not zsh was built to use
> > open_memstream from libc. FreeBSD and GNU libc have open_memstream.
>
> Indeed:
> ...
> % typeset -F SECONDS=0; prtf; print $SECONDS
> 3.8363050000
> %
>
> schaefer[557] grep -i memstream config.h
> /* Define to 1 if you have the `open_memstream' function. */
> /* #undef HAVE_OPEN_MEMSTREAM */
I confirm this. I've had additional complication, because OS X El Captain didn't have that function, and I used build from that OS, so tested zsh was slow. A quick look at config.log revealed however that it DOES have it. But it was a wrong conclusion, I've updated to OS X High Sierra and it is that OS that has open_memstream. Looking at older config.log from El Captain confirmed this – no open_memstream there. Fresh Zsh build is fast.
--
Sebastian Gniazdowski
psprint /at/ zdharma.org
Messages sorted by:
Reverse Date,
Date,
Thread,
Author