From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4649 invoked by alias); 12 Feb 2016 07:34:38 -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: 37950 Received: (qmail 27151 invoked from network); 12 Feb 2016 07:34:35 -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,FREEMAIL_FROM, T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1 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=CpHJnlo6Ml0JDOFwtIAdE3dyV/45uqU3184cg3oPJHU=; b=0aH/reNuSZ88y0X9xP8bF67cMfreDR536cZ7I1Qg7Laf9AiCQbt8tn1j8N6LuXp0VB 1H6kZ7RDK5d4BeITFBEgAWJD1qeTCrDSIJ3ZmcwUBbF7clg/rPiUb6TJ56f8dJfwK3wA PfAFEej9UUyAgZimqFioZ9MZQKGLZWHz5ZT9GNek2ys2W/aEhoBcDBJMRXPSYC6uVq5W UQMixiwOkS9YckxwhzAKcujMqfFJe1nFycENCU4rp2d3icydhU2z2+NvXHx5/b4vpRIo N23bve64peaGfRcrNwxyAnp0UxkoeF4vREpfnA/x+mFJ0IW3VTGD3DYD2dcGyhgFQYJ8 8deg== 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:from:date :message-id:subject:to:content-type; bh=CpHJnlo6Ml0JDOFwtIAdE3dyV/45uqU3184cg3oPJHU=; b=I/KWa9G+An696+Ru/ALeDY1h5/cJNqQrRmmgju/gL9Jaqa9VBV+8ouzj+3bbNnlecp LYpOj4IX7/i5dMFjsbD4/vhbI1c6M4BXHXSg62zpaKAq68vB2/e1Eknpj9GdlsEVbXTj 7udjHFpv7P87KSXmdmVqifV59WWiYAxsNqsh4hHkcI6lznbibyTvQZ984c5mdz+ctwmT eT/MvJ7tzoAWds2oseFb8iZxr/D7pO7ameKbak44ozrX+lboT4abmkxhUj98/+a1MiRr IbarDnmQoaHfGY2F29jqswsinSgjeQipEIMDbXu2BcfDkd722GruzAgYQvZSBjGQLDLU lNiQ== X-Gm-Message-State: AG10YOQdEU02m0cZJG0Lm0reu9rSbVl6kEdfXNQtyt8STws+uazDEK+AH4uYIpuQhCNhNYO/UjAEKTmU+4A0tw== X-Received: by 10.25.156.196 with SMTP id f187mr32561lfe.150.1455262471050; Thu, 11 Feb 2016 23:34:31 -0800 (PST) MIME-Version: 1.0 In-Reply-To: References: <160111233259.ZM6719@torch.brasslantern.com> <160118223126.ZM28565@torch.brasslantern.com> <160119195608.ZM31931@torch.brasslantern.com> <20160123235303.GE20278@tarsus.local2> <160123222057.ZM16192@torch.brasslantern.com> <160210101846.ZM2333@torch.brasslantern.com> From: Sebastian Gniazdowski Date: Fri, 12 Feb 2016 08:34:11 +0100 Message-ID: Subject: Re: Slow highlighting (Re: "drop-in replacement" and transpose-words-match) To: Zsh hackers list Content-Type: text/plain; charset=UTF-8 Just realized that I was doing: region_highlight+=("$start $end $sort | ${buf[start+1,end]}") instead of: region_highlight+=("$start $end $sort") in the parse.zsh. With this corrected the result is closer to 50%: ./parse.zsh "zplugin.zsh" > out_norm.txt 106,17s user 7,84s system 98% cpu 1:55,85 total ./parse.zsh "zplugin.zsh" > out_opt.txt 51,91s user 7,44s system 99% cpu 59,912 total Best regards, Sebastian Gniazdowski