Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Slow completion when using aptitude
- X-seq: zsh-workers 28655
- From: Julien Nicoulaud <julien.nicoulaud@xxxxxxxxx>
- To: cheer_xiao <xiaqqaix@xxxxxxxxx>
- Subject: Re: Slow completion when using aptitude
- Date: Wed, 26 Jan 2011 08:51:45 +0100
- Cc: zsh-workers@xxxxxxx
- 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=
- In-reply-to: <AANLkTikAKmnTt+9o5ibUGevk+m=rZJg9WrxV1WP+hX6w@mail.gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <AANLkTimtzJnpA=_QQgz4bSYZEjHydCSh6PLMKzFtwueS@mail.gmail.com> <AANLkTimYBY7nA_FCXTA8n-ukYwBxnobmoUNowJ6kxaGz@mail.gmail.com> <AANLkTikAKmnTt+9o5ibUGevk+m=rZJg9WrxV1WP+hX6w@mail.gmail.com>
Same here.
2011/1/26 cheer_xiao <xiaqqaix@xxxxxxxxx>
> On Wed, Jan 19, 2011 at 8:33 PM, Richard Hartmann
> <richih.mailinglist@xxxxxxxxx> 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
>
Messages sorted by:
Reverse Date,
Date,
Thread,
Author