From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-users@zsh.org
Subject: Re: [Feature suggestion] (user configurable) timeout for generating completion lists
Date: Sat, 25 Jan 2014 12:49:34 -0800 [thread overview]
Message-ID: <140125124934.ZM23767@torch.brasslantern.com> (raw)
In-Reply-To: <87iot91lp8.fsf@lwm.klanderman.net>
On Jan 24, 9:46am, Greg Klanderman wrote:
}
} For slow completion due to calling out to a separate process for
} completions (_git comes to mind) if that is not currently
} interruptible it seems like there might be some hope of adding a
} timeout or ensuring C-c will interrupt.
This is the thing I had a hard time reproducing. Even if I force
the completion function to be very busy with a loop, I can interrupt
it. (Oddly the value of $? is always 0 in _main_complete after I
hit ^C, so I can't detect the signal and issue a message.)
} The biggest problem I've had with completion being unresponsive was
} due to automounts at work (currently have ~53k under a handful of
} mount points). Using the fake-files zstyle mostly works until
} completion tries to stat all those automounts
I think this is analogous to the situation that started this thread.
} to determine the file type in order to append a '/' or ' '.
... which is difficult to do if there's an external program doing the
stat. Not impossible, but it means passing a lot of structured data
through a pipe, which might slow down more common cases.
(Maybe this is why Meino wants "find -print0 -ls". :-> )
} So locally I run zsh with a
} small patch (to ztat()) that uses a shell variable to configure
} automount roots under which all immediate entries are assumed to be
} directories without stat'ing. Works great, though I don't think
} several years ago you were willing to incorporate that into zsh.
Doesn't sound terrible, but I don't think it would solve the original
problem, which if I'm right is that NFS listing is big/slow after the
mount is already completed.
next prev parent reply other threads:[~2014-01-25 20:50 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-20 7:13 Arseny Tolmachev
2014-01-22 8:04 ` Bart Schaefer
2014-01-23 12:04 ` Nikolai Weibull
2014-01-24 1:16 ` Bart Schaefer
2014-01-24 9:00 ` Nikolai Weibull
2014-01-25 20:09 ` _git and partial completion, again Bart Schaefer
2014-01-24 14:46 ` [Feature suggestion] (user configurable) timeout for generating completion lists Greg Klanderman
2014-01-25 20:49 ` Bart Schaefer [this message]
2014-01-29 16:29 ` Greg Klanderman
2014-02-25 15:35 ` Greg Klanderman
2014-01-22 13:51 ` Shawn Wilson
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=140125124934.ZM23767@torch.brasslantern.com \
--to=schaefer@brasslantern.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).