From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23765 invoked by alias); 18 Oct 2015 21:32:22 -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: X-Seq: 36892 Received: (qmail 5332 invoked from network); 18 Oct 2015 21:32:21 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=1Ua25wBMe9tRMZa5xZVAYLM79Pqxcye36AEMooE+/vU=; b=vgDJ7B52uT1bF26nvODbpq2j8XSXpDj4KoaS8jDnN4IwUH3PXcjpSLw+6ARvpr47VV 6punfb6tpsU2tm9lT9U2fq2+uotcKSj/6yZeBpQwg58UCX4B3B5EeU+Z65F5ZLPU/6sI LbXoJv4aiEZTRIorAUB239gYdp0STOJVswMI0tMjsvb9CaFvzgW3/pS/DfpEoM8mzmTq xmDWPzV46ebLjQkuhJHYqw8nuPzyPZk+l8OKezCSvDiKw2o0QFS982U9xOjh3wO+cfYN rAAmql6DQ0j+706scHRSYNVFpAZZLhl1zp4RHqoHT6/H59VXMLXZZpzTYjqD0/Uw0cc5 2I0A== X-Received: by 10.25.78.80 with SMTP id c77mr455423lfb.18.1445203937811; Sun, 18 Oct 2015 14:32:17 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: <151010105849.ZM10144@torch.brasslantern.com> <151010170623.ZM16166@torch.brasslantern.com> <151010232045.ZM12931@torch.brasslantern.com> <151011091757.ZM27755@torch.brasslantern.com> <151011103121.ZM8814@torch.brasslantern.com> <151011142204.ZM9103@torch.brasslantern.com> <151012070105.ZM15099@torch.brasslantern.com> <151012173304.ZM15477@torch.brasslantern.com> <151013085246.ZM30504@torch.brasslantern.com> <20151014142722.282d0c5a@pwslap01u.europe.root.pri> <151014092536.ZM32511@torch.brasslantern.com> <151014095009.ZM19954@torch.brasslantern.com> <151014213224.ZM15646@torch.brasslantern.com> <151015173554.ZM30733@torch.brasslantern.com> From: Sebastian Gniazdowski Date: Sun, 18 Oct 2015 23:31:57 +0200 Message-ID: Subject: Re: Slowdown around 5.0.5-dev-0 To: zsh-workers@zsh.org Content-Type: multipart/mixed; boundary=001a114194e4577d1e052267c37e --001a114194e4577d1e052267c37e Content-Type: text/plain; charset=UTF-8 On 18 October 2015 at 23:07, Bart Schaefer wrote: > Sorry, I didn't mean order of zsh versions, I meant did you try doing > array_test before string_test within each version. That's what I did > String is stored as one contiguous block of bytes, so each time it exceeds > the size of the current heap block an entire new large-enough block is > allocated, and no previous block can never be re-used because the string > never shrinks. How can 5.1.1-dev-0 with no patches maintain low memory usage for strings then? # string_test 3.3, 7.8, 9.4, 11, 11, 11, 11, 11, 11, 12, 11, 12, 11, 12, last: 11 > For functions the test would also need to compare run time / CPU usage - I > would not expect memory usage to be interesting unless the function declared > locals. The function test has two samples more (7 vs. 9), taken in intervals of 3 seconds, so there is a difference. Best regards, Sebastian Gniazdowski --001a114194e4577d1e052267c37e Content-Type: text/plain; charset=US-ASCII; name="mem-test2.txt" Content-Disposition: attachment; filename="mem-test2.txt" Content-Transfer-Encoding: base64 X-Attachment-Id: f_ifx11zhw0 IyBUZXN0cyBmb3IgenNoCiMgYXJyYXlfdGVzdCAxLjUsIDIuNiwgMy4zLCA0LCA0LjUsIDQuOCwg NS43LCA2LjQsIDcuNSwgNy45LCA4LjEsIDguNCwgOC43LCA4LjksIGxhc3Q6IDkKYXJyYXlfdGVz dCA1LjYKIyBzdHJpbmdfdGVzdCAzNjEsIDUwOSwgNjA4LCA2NzYsIDcyOCwgNzcxLCA4MDYsIGxh c3Q6IDgzNgpzdHJpbmdfdGVzdCA2MDguO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