From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27808 invoked by alias); 26 Jan 2011 07:53:00 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 28655 Received: (qmail 16883 invoked from network); 26 Jan 2011 07:52:12 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 209.85.216.178 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=/VTNN1W9LGlxXyIcp2ysqx3li4Ca1Y5x2kg4Or0wNe4=; b=VzfcmOJt9jX/ZfnqzESvGx6t4rZqk7G6YIOMAi1xYCCNRE9w7ZSZ7WnDv8uXg52obk T2S8cogAsH3+XP4JGGF0Emfo5a32tirA4OyfL1I8Pa1NdqfCdwLb+D0JRh1UbsSEU/nQ bakFw5oBBR7p61/MUffzZIp3WImcaP175Ud6E= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=VDuVj2PtMCFj9zGSECR6OSak0gQ04lK1Ud5D3BN6dlDW2BWJzLIh3o7yjUaB71gFhO WSoggUQs1fvwnLGXks8Z4a1sMbMQBXyrywjzeBRBRlRujG2ffP+IeOhpxfI4ZGKeReil 4edfmey0/a+AVcyi/gaW15OxrsXiqBPHz2QdU= MIME-Version: 1.0 In-Reply-To: References: From: Julien Nicoulaud Date: Wed, 26 Jan 2011 08:51:45 +0100 Message-ID: Subject: Re: Slow completion when using aptitude To: cheer_xiao Cc: zsh-workers@zsh.org Content-Type: multipart/alternative; boundary=0016e64b03b600d34e049abb1c05 --0016e64b03b600d34e049abb1c05 Content-Type: text/plain; charset=ISO-8859-1 Same here. 2011/1/26 cheer_xiao > On Wed, Jan 19, 2011 at 8:33 PM, Richard Hartmann > wrote: > > Hi, > > > > those questions might be better suited to the -users list. > > > >> And another small related issue: the command tab-completion of zsh > >> doesn't seem to know aptitude build-dep, which has been around for a > >> few years but (unfortunately) undocumented. > > > > I did not have time to check the first issue, but on zsh 4.3.10, you > > can complete to aptitude build-dep. As a general rule of thumb, please > > try to use the newest version of zsh (and starting with zsh -f where > > applicable/possible) before reporting issues. They might have been > > fixed, already. > > Thanks for your attention. I posted this to zsh-workers because I > found it weird enough to be very likely a bug in source code. Could > you tell me if you are having performance problem with aptitude > tab-complete? Also, let me describe my problems in more detail. > > If I type "sudo apt-get install a" and hit Tab, I only get a short > (yet noticeable) delay of about one second. But when I type "sudo > aptitude install a" and hit Tab, zsh freezes, one of the CPU cores get > 100% loaded. It will recover after some 10 seconds. However after > this, the tab-completion of aptitude is as quick as apt-get's, until I > log out of zsh. > > I am using the version from git repo: > > xiaq@~> zsh --version > zsh 4.3.11-dev-1 (i686-pc-linux-gnu) > > and my system: > > xiaq@~> uname -a > Linux xxx 2.6.32-28-generic #55-Ubuntu SMP Mon Jan 10 21:21:01 UTC > 2011 i686 GNU/Linux > > After typing "sudo aptitude" and hitting Tab, the output is (build-dep > is absent): > > xiaq@~> sudo aptitude > autoclean -- erase old downloaded package files > changelog -- view a package's changelog > clean -- erase downloaded package files > download -- download the .deb file for a package > forbid-version -- forbid aptitude from upgrading to a > specific package ve > forget-new -- forget what packages are "new" > full-upgrade -- perform an upgrade, possibly installing > and removing pa > hold -- place packages on hold > install -- install/upgrade packages > markauto -- mark packages as having been > automatically installed > purge -- remove packages and their configuration files > reinstall -- download and (possibly) reinstall a > currently installed > remove -- remove packages > safe-upgrade -- perform a safe upgrade > search -- search for a package by name and/or expression > show -- display detailed information about a package > unhold -- cancel a hold command for a package > unmarkauto -- mark packages as having been manually > installed > update -- download lists of new/upgradable packages > why -- show the manually installed packages that > require a pac > why-not -- show the manually installed packages that > lead to a con > --0016e64b03b600d34e049abb1c05--