From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22334 invoked by alias); 26 Jan 2011 05:12:22 -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: 28654 Received: (qmail 25860 invoked from network); 26 Jan 2011 05:12:10 -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,RCVD_IN_DNSWL_LOW, T_TO_NO_BRKTS_FREEMAIL 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:content-type; bh=7Qqr591A1Vfj/FKVCnR6nwmpKzjCZ4kz95EBIAEqtZc=; b=n64g4JePKqKqTmi9EakP3oX6mEAwAy0Bw3cgolgv0Si7qvQZL29snNUo7T6sulCByf 1E+e3C7v6vLp0zyYYHM+8V9TTPYp9t/U237nD9JZ18TmNdJVBCbEGW4NwAqcz67iMaDV DxMT6VQzd4m9h3yrzxxV9KGgN5t/IseQO/vQk= 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 :content-type; b=Rh/zrxENm6Zdil2nopMj43WxcFV0vHm+HGKfKXSzI0YaXJguaLFc3CEkCd8Yc5XjoP WbY6TV3W7BfI2q6wbRT6S/TWzO4l3AnXI3inWZyjvaADWbnpqLTmnIRF6hxScB8ShQKx gOWKi3gddJG8yW6Umyb1Nilueun7J9TLAuoDA= MIME-Version: 1.0 In-Reply-To: References: From: cheer_xiao Date: Wed, 26 Jan 2011 13:11:40 +0800 Message-ID: Subject: Re: Slow completion when using aptitude To: zsh-workers@zsh.org Content-Type: text/plain; charset=UTF-8 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