From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19059 invoked by alias); 15 Dec 2017 11:02:00 -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: 42132 Received: (qmail 26732 invoked by uid 1010); 15 Dec 2017 11:02:00 -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 12.010368 secs); 15 Dec 2017 11:02:00 -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 (21) Date: Fri, 15 Dec 2017 12:01:43 +0100 From: Sebastian Gniazdowski To: Bart Schaefer , Zsh hackers list Message-ID: In-Reply-To: <170619160126.ZM3830@torch.brasslantern.com> References: <20170619122413.GA9294@chaz.gmail.com> <170619083116.ZM17323__41722.0601499595$1497886320$gmane$org@torch.brasslantern.com> <20170619161601.GB9294@chaz.gmail.com> <20170619202835.7f207185@ntlworld.com> <20170619215237.7e58707b@ntlworld.com> <170619160126.ZM3830@torch.brasslantern.com> 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: 7bit Content-Disposition: inline On 20 czerwca 2017 at 01:01:26, Bart Schaefer (schaefer@brasslantern.com) wrote: > On Jun 19, 9:52pm, Peter Stephenson wrote: > } > } I know what the problem with it is --- we can't tell the difference > } betwen a terminating '\0' and a '\0' that's part of the input stream. > > I'll add a comment to that effect and commit my patch from w/41322. I have just noted a huge speed up of Zsh startup and ran bisect. I do: repeat 10 { time /usr/local/bin/zsh -i -c exit } and before 41322, speed is 400 ms, 350 ms when everything is compiled. With this patch, it is 220/200 ms. I thought this effect will be only for sourcing not-compiled files. Basically this means that all the frameworks like Oh-My-Zsh can grow in size a "little" more ;) With my hasher optimization that's 205/185 ms, but 41322 is just paradigm-shift. -- Sebastian Gniazdowski psprint /at/ zdharma.org