From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26954 invoked by alias); 13 Mar 2018 11:41:53 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: List-Unsubscribe: X-Seq: 42456 Received: (qmail 9661 invoked by uid 1010); 13 Mar 2018 11:41:53 -0000 X-Qmail-Scanner-Diagnostics: from aok120.rev.netart.pl by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(85.128.245.120):SA:0(-1.9/5.0):. Processed in 2.808341 secs); 13 Mar 2018 11:41:53 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.1 X-Envelope-From: psprint@zdharma.org X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | X-Virus-Scanned: by amavisd-new using ClamAV (14) Date: Tue, 13 Mar 2018 12:28:16 +0100 From: Sebastian Gniazdowski To: Bart Schaefer , Oliver Kiddle Cc: "=?utf-8?Q?zsh-workers=40zsh.org?=" Message-ID: In-Reply-To: References: <19380.1520696454@thecus> Subject: Re: Performance tests of quoting and dequoting, printf -v turned out slow X-Mailer: Airmail (467) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On 11 marca 2018 at 09:33:46, Bart Schaefer (schaefer=40brasslantern.com)= 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=5Fmemstream from libc. =46reeBSD and GNU libc have open=5Fmemstr= eam. > =20 > Indeed: > ... > % typeset -=46 SECONDS=3D0; prtf; print =24SECONDS > 3.8363050000 > % > =20 > schaefer=5B557=5D grep -i memstream config.h > /* Define to 1 if you have the =60open=5Fmemstream' function. */ > /* =23undef HAVE=5FOPEN=5FMEMSTREAM */ 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 i= t. But it was a wrong conclusion, I've updated to OS X High Sierra and it= is that OS that has open=5Fmemstream. Looking at older config.log from E= l Captain confirmed this =E2=80=93 no open=5Fmemstream there. =46resh Zsh= build is fast. -- =20 Sebastian Gniazdowski psprint /at/ zdharma.org