From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9080 invoked by alias); 12 Oct 2015 14:01:14 -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: 36844 Received: (qmail 8441 invoked from network); 12 Oct 2015 14:01:11 -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:from:message-id:date:in-reply-to:comments :references:to:subject:mime-version:content-type; bh=2HdrNf+NBwVqZdNPujLxEyntDRhfDOglNf0etn/4YQ0=; b=aSs5XoSHGoXG/0lKQwhGxTQ9yt6Y/Td8GgvNWBBX4PQSw2MnWWN/YF2tw81QWSNq1g ZZTjiJrYWA1jB2ZAF7cUe5bAYMkLm0g4NGfYHc6ZKKtYecXe1rQopandK89nCgSfBABq wBqNmkxci1Zbl0tkUADyU6WJ4GVcDBprjISdgBETFF4NY+Ad0FLSEThU6zfJcD84f5bq S2Gjet6w5cpYZWgW2k7Y193uGLIQcvdQlNWy2qWzzfMKMW2TFri/Xgsmm9kPgOlOin54 p5w1QTYidyUje056dkj5ohKmhBYjc1rgSja6Y5anjz3jLfEYbgGMktCAmBnCQ9QPkHRt YISg== X-Gm-Message-State: ALoCoQl87W/4g1jW0ZKV4J16fQ0ESmN6LZxVVrhSM0CKdJV01hjEpzALjfGHUaZDO9D49k25ara7 X-Received: by 10.202.181.198 with SMTP id e189mr15226646oif.6.1444658468548; Mon, 12 Oct 2015 07:01:08 -0700 (PDT) From: Bart Schaefer Message-Id: <151012070105.ZM15099@torch.brasslantern.com> Date: Mon, 12 Oct 2015 07:01:05 -0700 In-Reply-To: Comments: In reply to Sebastian Gniazdowski "Re: Slowdown around 5.0.5-dev-0" (Oct 12, 10:21am) 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> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-workers@zsh.org Subject: Re: Slowdown around 5.0.5-dev-0 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Oct 12, 10:21am, Sebastian Gniazdowski wrote: } } With both patches zprof running time is around 1806. RES is 152M and } goes down nicely to 37564 when I quit the script. Didn't observe } after-while slow down. The tool is almost fully usable for 89k } elements (there's still a bit lag), however searching is slow, If you configure --enable-zsh-heap-debug you can edit mem.c to set a value for the heap_debug_verbosity variable which will cause a LOT of debugging messages to be printed to stderr. This may tell you where it's spending time. Shell variables are always passed around internally by value rather than by reference, so operations on a big list will copy it a lot.