Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Weird delay on long command lines
- X-seq: zsh-workers 22074
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: Weird delay on long command lines
- Date: Mon, 12 Dec 2005 20:30:07 +0100
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=rAvUBtrWrNFI9RqNgs0t9GDJstMct5JGwZ/MHil2oNzrlzvIeNqUtPJSXEaEiTa1Fyjin69946og04zfctr806naxR+xgcgJ7QoFyypl3TdDTCCZBj9JupWEhPCQFZ8EsWEem9tvDHnr4WjyrREiO/JmAKPq5xHIiN7H7M18nP8=
- In-reply-to: <20051212164202.0edd4c16.pws@xxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <237967ef0512091236n1fb4fe28lb77d2b75d42dedce@xxxxxxxxxxxxxx> <20051212164202.0edd4c16.pws@xxxxxxx>
On 12/12/05, Peter Stephenson <pws@xxxxxxx> wrote:
> Mikael Magnusson <mikachu@xxxxxxxxx> wrote:
> > This mostly happens when i paste gcc commands from autoconf, but it's
> > easy to reproduce with the alt-number keybinds. For example type
> > alt-1000 and press a, then press left arrow. You'll notice it takes a
> > second or two before anything happens. I've confirmed the same thing
> > happens with zsh -f. Attaching with strace shows the final argument to
> > poll() seems to be O(n) with the command line length but I really have
> > no idea why (or what the poll is for, haven't looked at the code).
>
> It's to do with the optimisation of the display for low baud rates. BAUD is
> initiliased from the terminal driver which may well have it set to
> something low like 38400. Try setting it to something much larger, or
> unsetting BAUD altogether.
>
> It's probably more trouble than it's worth nowadays; the number of serial
> line terminals, or even remote terminals where it's worth optimising the
> terminal handling, is probably quite limited. Maybe it shouldn't be set by
> default.
Yeah, unsetting BAUD fixed it, thanks.
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author