Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: zsh slow and hogs cpu when using */*/*.ext on large file tree



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.



Messages sorted by: Reverse Date, Date, Thread, Author