Bug 4940 - urpmi bash completion is very slow (~8 seconds)
Summary: urpmi bash completion is very slow (~8 seconds)
Status: RESOLVED DUPLICATE of bug 373
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: x86_64 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Guillaume Rousse
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-14 01:58 CET by Richard Neill
Modified: 2012-03-14 12:49 CET (History)
0 users

See Also:
Source RPM: urpmi-6.46-1.mga2
CVE:
Status comment:


Attachments

Description Richard Neill 2012-03-14 01:58:38 CET
Description of problem:

Type:   urpmi apache[TAB]

Bash completion correctly shows:
    Display all 174 possibilities? (y or n)

BUT, this takes 8 seconds!. 


Digging a little further, it's the function:
   _urpmi_packages()
within  /etc/bash_completion.d/urpmi
which is slow.

However, the underlying:
  urpmq --list 
is still very quick, timed at 0.15 second.



I know urpmi wasn't always this slow: I'm doing this on an core i7 2700 machine, with 16 GB RAM and SSDs...so it really shouldn't be this slow!
For comparison, "apt-get install apache[TAB]" runs in ~ 0.5 secs on an old laptop).
Manuel Hiebel 2012-03-14 02:19:55 CET

Assignee: bugsquad => guillomovitch

Guillaume Rousse 2012-03-14 12:47:25 CET

Summary: urpmi tab-completion is very slow (~8 seconds) => urpmi bash completion is very slow (~8 seconds)

Comment 1 Guillaume Rousse 2012-03-14 12:49:39 CET
A new completion has been implemented, and its currently under review. See #373 for further discussion.

*** This bug has been marked as a duplicate of bug 373 ***

Status: NEW => RESOLVED
Resolution: (none) => DUPLICATE


Note You need to log in before you can comment on or make changes to this bug.