From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7040 invoked by alias); 18 Oct 2015 16:19:08 -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: 36886 Received: (qmail 10027 invoked from network); 18 Oct 2015 16:19:07 -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 autolearn=ham autolearn_force=no version=3.4.0 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:cc:content-type; bh=hf+kHToMFwRdDEzun5hXJrzsJZDoGWgyE8veHA1IQQ4=; b=Kadwv2gFLL7jMZFamWbdlkzeNZTSLA6LzBL7YoJQB7tUhrd8ozjLhKhpE5I0JVLvIg 12CIcxhQK0jf/Mpgj+GOK+tUiM/Wz3wmUdi9HOspOtf8eTfW6nMM/bGCp2KawPXjjiLS QHvz7QQFJ/bAYoJLktAXDNtMpfoJFjapElgRt+KzTwMyQMGUgePx1+nYKo7unIlTT4zZ TKIeLaPov2L+2feAAMEha/j5h0OvJ4qHnOaeorSp0yRa1DkBjBCIC2R0cRlOVMcZ0tW/ ZtMqB/6Sv68tHTWSSY00ZMZ21dTJN3Eath+ooViMrG7gpvUG4o4T3TQn7pw3KNajp6oI Jw8Q== X-Gm-Message-State: ALoCoQklgCc+ylwhwzu9I1/P/TgrujNq+oZah+vj7bTJKD+APuiqdG8THiwQVxV4WHVCRgoTJiQY MIME-Version: 1.0 X-Received: by 10.180.182.107 with SMTP id ed11mr15727661wic.52.1445185145380; Sun, 18 Oct 2015 09:19:05 -0700 (PDT) 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> Date: Sun, 18 Oct 2015 09:19:05 -0700 Message-ID: Subject: Re: Slowdown around 5.0.5-dev-0 From: Bart Schaefer To: Sebastian Gniazdowski Cc: Zsh hackers list Content-Type: text/plain; charset=UTF-8 On Sat, Oct 17, 2015 at 2:12 AM, Sebastian Gniazdowski wrote: > On 16 October 2015 at 02:35, Bart Schaefer wrote: >> The array test only iterates 10000 times, the string test 50000 ? Does >> that not account for the difference? > > Apparently not. I've modified the mem-test script so that it queries > usage of memory also during the tests. It can be seen that for strings > (and zsh 5.0.2) the memory is high from the beginning. I'm strongly inclined to think that's more likely an artifact of the testing method than of the test itself -- have you tried running the tests in the opposite order? You also haven't explained your reasoning for having the string test iterate so many more times than the array test. Does it have to do with keeping total run time similar? > It can be also seen that the recent three patches increase memory > usage. A clean, free from the patches version of zsh > (5.1.1-dev-0-clean) keeps the memory always low. That's entirely to be expected -- all three patches increase speed by avoiding the work necessary to minimize memory footprint, until (as you noted in next message) the execution stack is unwound.