Bug 4940

Summary: urpmi bash completion is very slow (~8 seconds)
Product: Mageia Reporter: Richard Neill <mageia>
Component: RPM PackagesAssignee: Guillaume Rousse <guillomovitch>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: Normal    
Version: Cauldron   
Target Milestone: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Source RPM: urpmi-6.46-1.mga2 CVE:
Status comment:

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