From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11085 invoked from network); 12 Dec 2005 19:30:21 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO autolearn=ham version=3.1.0 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 12 Dec 2005 19:30:21 -0000 Received: (qmail 15155 invoked from network); 12 Dec 2005 19:30:15 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 12 Dec 2005 19:30:15 -0000 Received: (qmail 4838 invoked by alias); 12 Dec 2005 19:30:12 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 22074 Received: (qmail 4827 invoked from network); 12 Dec 2005 19:30:12 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 12 Dec 2005 19:30:12 -0000 Received: (qmail 14849 invoked from network); 12 Dec 2005 19:30:11 -0000 Received: from zproxy.gmail.com (64.233.162.203) by a.mx.sunsite.dk with SMTP; 12 Dec 2005 19:30:11 -0000 Received: by zproxy.gmail.com with SMTP id n29so1610360nzf for ; Mon, 12 Dec 2005 11:30:10 -0800 (PST) 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= Received: by 10.36.250.41 with SMTP id x41mr6391415nzh; Mon, 12 Dec 2005 11:30:07 -0800 (PST) Received: by 10.36.22.5 with HTTP; Mon, 12 Dec 2005 11:30:07 -0800 (PST) Message-ID: <237967ef0512121130o2eafcdb3nca0ce28e72aa8f6f@mail.gmail.com> Date: Mon, 12 Dec 2005 20:30:07 +0100 From: Mikael Magnusson To: zsh-workers@sunsite.dk Subject: Re: Weird delay on long command lines In-Reply-To: <20051212164202.0edd4c16.pws@csr.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <237967ef0512091236n1fb4fe28lb77d2b75d42dedce@mail.gmail.com> <20051212164202.0edd4c16.pws@csr.com> On 12/12/05, Peter Stephenson wrote: > Mikael Magnusson 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