Zsh Mailing List Archive
Messages sorted by:
Re: zsh slow and hogs cpu when using */*/*.ext on large file tree
- X-seq: zsh-users 21089
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: zsh slow and hogs cpu when using */*/*.ext on large file tree
- Date: Sat, 12 Dec 2015 09:42:06 -0800
- 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==
- In-reply-to: <566C4EA6.email@example.com>
- List-help: <mailto:firstname.lastname@example.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:email@example.com>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <566B1D81.firstname.lastname@example.org> <CAKc7PVCWwtjgrT3UC1X7a7DkD7KXS02SdDwbA7Zu66fw_SDrKw@mail.gmail.com> <566C4623.email@example.com> <CAKc7PVDKGkNqt=Q=rpLUS76wE8vsZmAWCSyQtvXVnPuFtOe5DA@mail.gmail.com> <CAKc7PVBubv+hUDakCfJoypXDTx=WMA6Qm8qE-nFrSTQKhEzGzg@mail.gmail.com> <566C4EA6.firstname.lastname@example.org>
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,
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.
Messages sorted by: