From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9466 invoked by alias); 25 Oct 2015 07:35:59 -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: 36953 Received: (qmail 16397 invoked from network); 25 Oct 2015 07:35:57 -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=1Gdp8pHgcLX+RP8UKjT0TBfzr8Pnk9DbcsWVr0ypjv4=; b=DiSy1cLIbTbihRg6OWjONaJ9ejVn9cvuwsp/27kGs90+UyzZ8Ms9pR5ar/tRhBpctZ Ekz96ehdT9DtOpXm6gBuunxMLRFydpJR9gs3hmrYqE2mddUxIMABEFEXVKVGSa7o4zM5 hb0zSy7lJsPdOKTDbIESwYt19E5e2OPS+IRHTpfkvJgozPVNYNVa2P4H3csPolRQUUJ5 fK0QtssC4sbr8dzgo+gJLYNgjP3ga5U0O+0MK8OXAFtjEnVgOOcHkuCoVsy5VLn5igZf naEbLhUYwEYN4epP9hTpOUwzoWMKYfxYUhcZYW4Wq1xzWtM2XB/ABR5CkP5pBb17sW3i 4J0Q== X-Received: by 10.112.131.8 with SMTP id oi8mr11550063lbb.99.1445758552730; Sun, 25 Oct 2015 00:35:52 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <151024123943.ZM30236@torch.brasslantern.com> 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> <151019102117.ZM32700@torch.brasslantern.com> <151022080024.ZM6471@torch.brasslantern.com> <151023122655.ZM21177@torch.brasslantern.com> <151023165006.ZM25785@torch.brasslantern.com> <151024123943.ZM30236@torch.brasslantern.com> From: Sebastian Gniazdowski Date: Sun, 25 Oct 2015 08:35:32 +0100 Message-ID: Subject: Re: Slowdown around 5.0.5-dev-0 To: zsh-workers@zsh.org Content-Type: multipart/mixed; boundary=e89a8f235015f81e8e0522e8e463 --e89a8f235015f81e8e0522e8e463 Content-Type: text/plain; charset=UTF-8 On 24 October 2015 at 21:39, Bart Schaefer wrote: > OK, let's try it this way. This retains MOST of 36834, but puts back > scanning the entire heap if we intend to free the block to which the > current fheap pointer refers. > > (This is a patch against 8e9a68ad but applies to current head.) My results. 36943 has string_test speed of current head (so it's slightly better than in your results). And memory usage is in check, so that's a fix. I calibrated for string_test, it's interesting how much slower array_test is on OS X. My machine is 2.3 GHz, maybe that's some reason (your is faster IIRC). Best regards, Sebastian Gniazdowski --e89a8f235015f81e8e0522e8e463 Content-Type: text/plain; charset=US-ASCII; name="perf-test-36943.txt" Content-Disposition: attachment; filename="perf-test-36943.txt" Content-Transfer-Encoding: base64 X-Attachment-Id: f_ig673zkx0 UnVubmluZyBbenNoLWhlYWQtOGU5YTY4YV06ICAgICAgICAgICAgICBzdHJpbmdfdGVzdCAgICAg IDIyMDgxLDYyClJ1bm5pbmcgW3pzaC0zNjkyNl06ICAgICAgICAgICAgICAgICAgICAgc3RyaW5n X3Rlc3QgICAgICA0ODc2Niw3NQpSdW5uaW5nIFt6c2gtMzY5NDNdOiAgICAgICAgICAgICAgICAg ICAgIHN0cmluZ190ZXN0ICAgICAgMjE4OTcsMTIKClJ1bm5pbmcgW3pzaC1oZWFkLThlOWE2OGFd OiAgICAgICAgICAgICAgYXJyYXlfdGVzdCAgICAgICA0ODgxNCw0OQpSdW5uaW5nIFt6c2gtMzY5 MjZdOiAgICAgICAgICAgICAgICAgICAgIGFycmF5X3Rlc3QgICAgICAgNDgyMTMsMjIKUnVubmlu ZyBbenNoLTM2OTQzXTogICAgICAgICAgICAgICAgICAgICBhcnJheV90ZXN0ICAgICAgIDQ5MTk4 LDc5CgpSdW5uaW5nIFt6c2gtaGVhZC04ZTlhNjhhXTogICAgICAgICAgICAgIGZ1bmN0aW9uX3Rl c3QgICAgNDMwOTEsMDAKUnVubmluZyBbenNoLTM2OTI2XTogICAgICAgICAgICAgICAgICAgICBm dW5jdGlvbl90ZXN0ICAgIDQ0MTIxLDg3ClJ1bm5pbmcgW3pzaC0zNjk0M106ICAgICAgICAgICAg ICAgICAgICAgZnVuY3Rpb25fdGVzdCAgICA0MjM1NCw5MwoKUnVubmluZyBbenNoLWhlYWQtOGU5 YTY4YV06ICAgICAgICAgICAgICBzZWFyY2hfdGVzdCAgICAgICA4Mzk2LDUwClJ1bm5pbmcgW3pz aC0zNjkyNl06ICAgICAgICAgICAgICAgICAgICAgc2VhcmNoX3Rlc3QgICAgICAgODEyMiw0OApS dW5uaW5nIFt6c2gtMzY5NDNdOiAgICAgICAgICAgICAgICAgICAgIHNlYXJjaF90ZXN0ICAgICAg IDc4MTYsMTcKCg== --e89a8f235015f81e8e0522e8e463 Content-Type: text/plain; charset=US-ASCII; name="mem-test-36943.txt" Content-Disposition: attachment; filename="mem-test-36943.txt" Content-Transfer-Encoding: base64 X-Attachment-Id: f_ig673zlg1 IyBUZXN0cyBmb3IgenNoLWhlYWQtOGU5YTY4YQojIHN0cmluZ190ZXN0IDQzLCAxNzksIDMxOCwg NDUxLCA1ODMsIDcxMywgbGFzdDogOS42CnN0cmluZ190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