zsh-users
 help / color / mirror / code / Atom feed
From: KARBOWSKI Piotr <piotr.karbowski@gmail.com>
To: Sebastian Gniazdowski <sgniazdowski@gmail.com>
Cc: zsh-users@zsh.org
Subject: Re: zsh slow and hogs cpu when using */*/*.ext on large file tree
Date: Sat, 12 Dec 2015 17:06:59 +0100	[thread overview]
Message-ID: <566C4623.1020205@gmail.com> (raw)
In-Reply-To: <CAKc7PVCWwtjgrT3UC1X7a7DkD7KXS02SdDwbA7Zu66fw_SDrKw@mail.gmail.com>

Hello,

On 12/11/2015 10:46 PM, Sebastian Gniazdowski wrote:
> What version of Zsh? 5.2 has optimizations that could help. Could you
> compare speeds?

That was 5.1.1, update to 5.2 and it seems to be faster, but still many 
times slower than bash.


# time zsh -c 'cd /usr/portage && ls */*/*.ebuild >/dev/null'
zsh -c 'cd /usr/portage && ls */*/*.ebuild >/dev/null'  2.36s user 0.13s 
system 99% cpu 2.493 total

# time bash -c 'cd /usr/portage && ls */*/*.ebuild >/dev/null'
bash -c 'cd /usr/portage && ls */*/*.ebuild >/dev/null'  0.12s user 
0.11s system 98% cpu 0.236 total

-- Piotr.


  reply	other threads:[~2015-12-12 16:07 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-11 19:01 KARBOWSKI Piotr
2015-12-11 21:46 ` Sebastian Gniazdowski
2015-12-12 16:06   ` KARBOWSKI Piotr [this message]
2015-12-12 16:24     ` Sebastian Gniazdowski
2015-12-12 16:33       ` Sebastian Gniazdowski
2015-12-12 16:43         ` Piotr Karbowski
2015-12-12 17:03           ` Sebastian Gniazdowski
2015-12-12 17:18             ` Sebastian Gniazdowski
2015-12-12 17:42           ` Bart Schaefer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=566C4623.1020205@gmail.com \
    --to=piotr.karbowski@gmail.com \
    --cc=sgniazdowski@gmail.com \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).