Bug 811285
Summary: | Tab Completion Slower in Fedora than Ubuntu using CLI Package Manager | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Matt Reid <mreid> | ||||
Component: | yum | Assignee: | Fedora Packaging Toolset Team <packaging-team> | ||||
Status: | CLOSED WONTFIX | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | unspecified | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 16 | CC: | ffesti, james.antill, maxamillion, pmatilai, sheltren, tim.lauridsen, ville.skytta, zpavlas | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | |||||||
: | 919852 (view as bug list) | Environment: | |||||
Last Closed: | 2013-02-13 20:50:16 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Matt Reid
2012-04-10 15:52:38 UTC
It's not about bash-completion, it's about yum vs apt-get. To get a rough picture of it, check out "yum -C list available" vs the corresponding apt-get (or is it apt-cache? don't remember offhand) command. @Matt: comparing bash-completion speed with another distro don't make much sense. But I agree that the bash completion with yum install foo<tab><tab> is very slow and could be optimized. @Ville: If you use a helper python script, you would be able to speed it up Check how I do it in yumex where I have realtime package lookup when you type https://github.com/timlau/yumex/blob/master/src/yumexbackend/yum_server.py#L1046 parsing the output from "yum -C list available" will be slow because of the number of packages in Fedora and you have to list all packages every time and filter them. if you let yum do the searching using returnPackages(patterns=['foo*']) it will speed up thing a lot and you can use YumBase.rpmdb.returnPackages on remove commands and YumBase.pkgsack.returnPackages on install/update commands. Created attachment 577275 [details]
A little test script to show the concept
We're already using a dedicated script for that, see /usr/share/yum-cli/completion-helper.py - "yum -C list available" was just an easily accessible example and I mentioned "rough picture" with it... This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component. This message is a reminder that Fedora 16 is nearing its end of life. Approximately 4 (four) weeks from now Fedora will stop maintaining and issuing updates for Fedora 16. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as WONTFIX if it remains open with a Fedora 'version' of '16'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version prior to Fedora 16's end of life. Bug Reporter: Thank you for reporting this issue and we are sorry that we may not be able to fix it before Fedora 16 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged to click on "Clone This Bug" and open it against that version of Fedora. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete. The process we are following is described here: http://fedoraproject.org/wiki/BugZappers/HouseKeeping Fedora 16 changed to end-of-life (EOL) status on 2013-02-12. Fedora 16 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. Thank you for reporting this bug and we are sorry it could not be fixed. |