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

RE: Slow compdump on Vista - no .zcompdump created



It turns out the massive slowdown of "ls -l" on Vista was due to the
Symantec AntiVirus software:
http://www.cygwin.com/ml/cygwin/2007-10/msg00527.html

With "File System Auto-Protect" disabled, the execution time for
"compinit" goes down from 12 seconds to 3 seconds.

Still, it does seem odd that .zcompdump is not created by default.
Presumably, if it were, compinit would likely run in a fraction of a
second?
Does anyone know why .zcompdump might not be getting created on Cygwin,
and whether I can force it?

    --- John.


-----Original Message-----
From: Seth Kurtzberg [mailto:seth@xxxxxxx] 
Sent: 24 October 2007 17:11
To: John Cooper; 'Zsh Users'
Subject: RE: Slow compdump on Vista - no .zcompdump created

I'll time some ls operations, then run rebaseall, then check whether the
ls
performance has changed.

As I can't run ls from zsh at the moment, I'll run it from the cygwin
bash
shell.  Doing the before and after with bash, and then comparing bash to
zsh, should allow us to infer whether the rebaseall is related to the ls
performance.

-----Original Message-----
From: John Cooper [mailto:John.Cooper@xxxxxxxxxx] 
Sent: Wednesday, October 24, 2007 11:02 AM
To: Seth Kurtzberg; Zsh Users
Cc: John Cooper
Subject: RE: Slow compdump on Vista - no .zcompdump created

It's usable although noticeably sluggish (and I have a 2.8GHz dual-core
machine with 4Gb memory!).
I've just posted to the cygwin mailing list about "ls" being much slower
on Vista compared to XP:
http://cygwin.com/ml/cygwin/2007-10/msg00500.html

I did encounter the fork problem but ran "rebaseall" to fix things up.
Perhaps this rebasing has somehow contributed to the slowdown?

    --- John.

-----Original Message-----
From: Seth Kurtzberg [mailto:seth@xxxxxxx] 
Sent: 24 October 2007 15:43
To: John Cooper; 'Zsh Users'
Subject: RE: Slow compdump on Vista - no .zcompdump created

Does your question imply that zsh with cygwin is more or less functional
on
vista?  My experience with it, confirmed by many postings around the
'net,
is that the cygwin fork functionality is completely broken on vista and
this
makes zsh essentially unusable on vista.  Has there been a fix for this
problem, or has the situation changed for some other reason?

Thanks in advance,

Seth Kurtzberg
Software Engineer
Specializing in Security, Reliability, and the Hardware/Software
Interface



-----Original Message-----
From: John Cooper [mailto:John.Cooper@xxxxxxxxxx] 
Sent: Wednesday, October 24, 2007 9:26 AM
To: Zsh Users
Subject: Slow compdump on Vista - no .zcompdump created

Each time I start cygwin zsh (4.3.2 or 4.3.4) on Vista, compinit takes
around 12 seconds and no .zcompdump file is created:

C:\>zsh -f
$P$Gautoload -U compinit
$P$Gcd
$P$Gdate; compinit; date
Wed Oct 24 13:56:08 GMTDT 2007
Wed Oct 24 13:56:20 GMTDT 2007
$P$Gls .zcompdump
ls: .zcompdump: No such file or directory
$P$G

"compinit -u" and "compinit -C" take about the same time.


With zsh 4.2.6 on WinXP, when I run "compinit" I get prompted:
  Ignore insecure directories and continue [ny]?

(this prompt isn't shown with zsh 4.3.{2,4} on Vista.)

If I type "y" or run "compinit -C" it runs much faster in zsh 4.2.6 on
WinXP (although a .zcompdump file is still not created):

$P$Gdate; compinit -C; date
Wed Oct 24 14:08:16 GMTDT 2007
Wed Oct 24 14:08:17 GMTDT 2007
$P$G

Any ideas on how to speed it up on zsh 4.3.4 on Vista, and why the
.zcompdump file is not being created (`man zshall' states it should be
created by default)?

Thanks,

    --- John.



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