From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 974 invoked by alias); 17 May 2016 10:18:21 -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: 21571 Received: (qmail 28987 invoked from network); 17 May 2016 10:18: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=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:date:message-id:subject:from:to; bh=r0aUT52GjDoNY3fDm6yMUppPRbIkIchjGThgpSCB1g4=; b=nW8eauXZ9CDwxlwlxGke49anvZsJ+Wsey6dL6/Sf2X8NG5DIgQO4Oe+RJ8xMUYYhte YyQE029DvqOS8iHGvMXAiV84XZwr06CfS0ymUI7bw3mwr33dsksrUX2WM8cBD4FnmLE7 xCucMWpg/tILnQe4xwi6zteQ4NdNatpXpsKK37Dn/SMAHbTtoJl+KgmtMcLnurmnki3F Oo+4b9oo6Em4aCFbFP+Q2wU+Ur0L7lkEbwYmJEQoXjqFIwXnUDi+s5OAXuTxkJrQhFBm wLwNtePwPwtPqxAbuMrBs4meKhz9vdvgmS3st8YdBNrvKqg4BrHi8GGHa+S6/jMt2LUu 4soQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to; bh=r0aUT52GjDoNY3fDm6yMUppPRbIkIchjGThgpSCB1g4=; b=Su/33y8+p6ZM9D9RyuMtLUXd6u+v+cVKxqCNN8a1bCNyuTOOY7JhclGFn23SmxeE68 ApljBjT8x9JPegV4IqyZwCnluMIoMMRwWVwyw5964HT/VkOCfe2IB1Owa6ajjyOuBVpG muMSV2SehTqQC0ZwhujD98XmCLO7GgOS4NPQtxW8+cOSCZGyJwHJfvcqAFZ6qRX7sf6J WByNmBTmZhlggNnmu0ez4/bQYDZnEu3PEJUi+QL/AyN4+Mlm6RRPNUPJ0qrVI6lDyOyg /Mcm0CgKMD9h7WXFSCZALTnrmLQUDaWaf0vpHQddZQUaTBDdqPgTIRvjcjC8gvV+b1oE TcBw== X-Gm-Message-State: AOPr4FUbelwU9gMXltod2af/ASFPEMrPxdbqKycYS7RnRC9Zrc2TTjS6Tj3GSGbrm6yaXhEO9UZ5Uzapg9BCqA== MIME-Version: 1.0 X-Received: by 10.112.189.73 with SMTP id gg9mr154062lbc.109.1463480296030; Tue, 17 May 2016 03:18:16 -0700 (PDT) In-Reply-To: References: <160508093530.ZM9686@torch.brasslantern.com> Date: Tue, 17 May 2016 03:18:15 -0700 Message-ID: Subject: Re: One more heap optimization trick for zsh < 5.2 From: Bart Schaefer To: Zsh Users Content-Type: text/plain; charset=UTF-8 On Mon, May 16, 2016 at 8:01 AM, Sebastian Gniazdowski wrote: > > I was testing the same input with 89k lines. The cause now > accidentally clarified. It's about zplugin's shadowing of autoload Are you sure it's the wrapper and not the autoloading? It's pretty common for the first run of an autoloaded function to be slower than subsequent runs. > It's hard to describe what *reload-and-run does It temporarily alters FPATH when invoking an autoloaded function so that the function is found in / loaded from a particular location. > How do you think what can be > happening inside Zsh? Other than the normal autoloading stuff, nothing I can think of. Is the value of FPATH becoming especially large? Could the slowdown be external to zsh, e.g., opening/reading of directories in the fpath search slower?