Bug 1227979 - Slow tab completion for dnf commands
Summary: Slow tab completion for dnf commands
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf
Version: 22
Hardware: x86_64
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: rpm-software-management
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-06-04 02:20 UTC by Alex Richert
Modified: 2016-07-19 20:09 UTC (History)
9 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2016-07-19 20:09:44 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Alex Richert 2015-06-04 02:20:31 UTC
Description of problem:
There seems to be a slight delay (0.5-1 sec) for tab completion of dnf commands (see example below).

Version-Release number of selected component (if applicable):
dnf-1.0.0-1.fc22

How reproducible:
Always

Steps to Reproduce:
1. Type "dnf inst[tab]"

Actual results:
Slow (compared with, say, yum)

Expected results:
Fast

Comment 1 Honza Silhan 2015-07-24 11:30:10 UTC
Igor, can this be improved? Do you know why yum complete this faster?

Alex do you have dnf-plugins-core installed?

Comment 2 Igor Gnatenko 2015-07-24 11:50:47 UTC
(In reply to Jan Silhan from comment #1)
> Igor, can this be improved? Do you know why yum complete this faster?
> 
> Alex do you have dnf-plugins-core installed?

yum has predefined completion while dnf has introspectable completion. I think we can improve initializing DNF or implement minimal-init().

Reference: https://github.com/rpm-software-management/dnf/blob/master/dnf/cli/completion_helper.py#L168-L187

Comment 3 Fedora Admin XMLRPC Client 2016-07-08 09:30:58 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 4 Fedora End Of Life 2016-07-19 20:09:44 UTC
Fedora 22 changed to end-of-life (EOL) status on 2016-07-19. Fedora 22 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. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.


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