From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8501 invoked by alias); 17 Jun 2017 14:56:18 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 22731 Received: (qmail 9934 invoked from network); 17 Jun 2017 14:56:18 -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(0.0/5.0):. Processed in 1.636259 secs); 17 Jun 2017 14:56:18 -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=0.0 required=5.0 tests=none autolearn=unavailable autolearn_force=no version=3.4.1 X-Envelope-From: psprint@zdharma.org X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: none (ns1.primenet.com.au: domain at zdharma.org does not designate permitted sender hosts) X-Virus-Scanned: by amavisd-new using ClamAV (11) Date: Sat, 17 Jun 2017 16:56:10 +0200 From: Sebastian Gniazdowski To: Bart Schaefer Cc: Zsh Users Message-ID: In-Reply-To: References: Subject: Re: Why sourcing a file is not faster than doing a loop with eval, zle -N X-Mailer: Airmail (442) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline 17.06.2017 o 16:06:59, Bart Schaefer (schaefer=40brasslantern.com) napisa= =C5=82: > You might get faster parsing if you setopt noaliases. Just a thought, > can't try it=E2=80=8B right now. I tried it. I think there's no change. Setup that reads =7E/.fsh=5Fcache = is 0.414 vs 0.417 (noaliases). Before I've given time 0.432, but there wa= s single large value 0.599, so I now summed 9 numbers, and divided by 9 (= giving 0.414). Just to remind, normal time is 0.396 (0.389 in second test). Time for zcompiled =7E/.fsh=5Fcache is 0.375 in new test (previous: 0.383= ). So it's 20 ms compared to slower normal read 0.396. Almost reached the= goal of 40 ms. =46or someone having startup time 200-250 ms the 40 ms wo= uld matter. -- =20 Sebastian Gniazdowski psprint /at/ zdharma.org