From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20503 invoked by alias); 12 Dec 2015 17:41:55 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 21089 Received: (qmail 12387 invoked from network); 12 Dec 2015 17:41:52 -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,T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version:content-type; bh=m+JGo0WsUmJqP75V+I+6x7VAy1yUwxYsMqHr4pmMaA8=; b=y6Ba+B9gnByZscNaH9DOqfUBduc6/7M7UvUsMKGf4qWGiN+VubQeT/NKQkDWhmzMsm Va9cxp+QaMTlBdUHshARSEWzVr7JYgj9b3zgPHKSCshNNO3VDO+YCppi8kkzNVGOsrN+ 2HusDXzQsb2ZZhZ4nLz3u65UDsXTX7Y3qxy0QhJHBEA/CxzTJWtLuwjxxWSBo1tJnPeW 0zRr/RYMs1+IDNbSPPYczIzdm6KT2sZSYB+zZnNthTOnd54DQhI+Md/CARxt+pBrw59W DcLGxUn5C8UlIKH9HOeoLovbZXmyBySefrf7em9r9Gw5d8AQx6jxeYA0IDN/Dq5pKwOR Btjg== 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=m+JGo0WsUmJqP75V+I+6x7VAy1yUwxYsMqHr4pmMaA8=; b=YykUjLUSb0taUOwaum0HIFk6iUh+66hIIZ24CIE/Un1ucSPJxNbe8C2qG+HMjj2CNF XVdc8LAzD6ZyyrEH5CqY3rn8wW6YUEGBMIYspkh/aj0RL6PVsOw5rMb+9cwC87o3x5bp OXKpIDc/pjR2QY4jX76thesU0WERC6ym+ueijGpM1eNbfkF5O+pwosopU8BFxmR5fEBJ RxQHWiA2IbokBHRRVk/Ys6jFH372sUr5Jd1yFEA9NQH/KgePTOZ87AcbkE4vkUiL7001 urL8zzFRlhdzJSzqcX5Zz791Ewav5JeLEcTFSDR30mDtmiLBli7MjxoYqfLyfAYCeKu+ sI+A== X-Gm-Message-State: ALoCoQnr7AkRAj0k52jdC/ayoMnxj9gdLR9812zQIrk3yMQwXEEL231nB9bbfh49K3+WpbVQPxkULAj6YhYxjMELjdRq3ArZ3Q== X-Received: by 10.98.75.142 with SMTP id d14mr24013431pfj.91.1449942110337; Sat, 12 Dec 2015 09:41:50 -0800 (PST) From: Bart Schaefer Message-Id: <151212094206.ZM6592@torch.brasslantern.com> Date: Sat, 12 Dec 2015 09:42:06 -0800 In-Reply-To: <566C4EA6.5050704@gmail.com> Comments: In reply to Piotr Karbowski "Re: zsh slow and hogs cpu when using */*/*.ext on large file tree" (Dec 12, 5:43pm) References: <566B1D81.2090106@gmail.com> <566C4623.1020205@gmail.com> <566C4EA6.5050704@gmail.com> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-users@zsh.org Subject: Re: zsh slow and hogs cpu when using */*/*.ext on large file tree MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Dec 12, 5:43pm, Piotr Karbowski wrote: } } Actually it does not seems that 5.1.1 is much slower than 5.2. My report } was wrong as the grep did not showed up for 20s as with first X files it } wasn't finding anyting, here I've tested with ls. To get an accurate reading of the time spent by the shell itself, you should compare a command that generates the list of files and then throws it away; e.g. time zsh -fc '/bin/true */*/*.ebuild' There's really no way to get timings of the glob without also adding the shell startup time, so this may be a little off (hence -f to try to skip as much startup as possible). To make the zsh time output look like bash's, TIMEFMT=$'real\t%E\nuser\t%U\nsys\t%S' There are a whole lot of other possible values you can put in TIMEFMT in zsh to get more details about where it might be taking extra.