This is the mail archive of the
mailing list for the Cygwin project.
Re: questions about excessive disk usage when doing tab completion
- From: Eric Blake <ebb9 at byu dot net>
- To: cygwin at cygwin dot com, ben at 666 dot com
- Date: Sat, 21 Oct 2006 18:19:09 -0600
- Subject: Re: questions about excessive disk usage when doing tab completion
- References: <453AAF44.email@example.com>
-----BEGIN PGP SIGNED MESSAGE-----
According to Ben Wing on 10/21/2006 5:37 PM:
> I am using zsh on the latest cygwin and the first time I load it up and
> try to do tab completion on e.g. /mnt/g/download/<TAB>, it spends an
> inordinate amount of time grinding the disk -- sometimes on the order of
> 2 minutes or more. the directory contains only 8 subdirs:
You didn't attach cygcheck output, so some of my reply is just a guess.
Is /mnt your preferred spelling for the cygdrive prefix? Is /mnt/g a
local or remote disk?
> drwxrwxrwx+ 160 Ben None 0 Oct 16 11:03 utorrent/
This might be why - to correctly fill out the n_link member of struct stat
for a directory on a local drive, cygwin counts how many subdirectories
live in that directory. Depending on how your disk is filled, it may take
some time to effectively readdir the directory to get that count.
Extra-full directories take longer to traverse, even if the traversal is
only to calculate how many subdirectories were encountered.
Life is short - so eat dessert first!
Eric Blake firstname.lastname@example.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v126.96.36.199 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html