Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 412471

Summary: emerge --search output behaviour may appear slow
Product: Portage Development Reporter: Patrick Lauer <patrick>
Component: Core - Interface (emerge)Assignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: normal Keywords: InVCS
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=525718
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 484436    

Description Patrick Lauer gentoo-dev 2012-04-18 06:56:25 UTC
Right now emerge --search builds a list of search results, then prints all results at the end. This appears slow to users as it "stalls" while generating the results, then spews them at the end.

Printing each result as it is found should have much better interactivity and will appear faster even when it takes the same amount of time
Comment 1 Zac Medico gentoo-dev 2014-10-23 11:27:45 UTC
I would like to develop a streaming API for the package description index file (see bug #525718). My plan is to search index file streams from all repos simultaneously, and to group together results for the same ${CATEGORY}/${PN} across all repositories.
Comment 2 Zac Medico gentoo-dev 2014-11-01 23:12:47 UTC
My latest patch series from bug #525718 includes support for incremental display of search results:

	http://thread.gmane.org/gmane.linux.gentoo.portage.devel/4648/focus=4717

I'm maintaining this patch series in the following branch:

	https://github.com/zmedico/portage/tree/bug_525718_stream
Comment 3 Zac Medico gentoo-dev 2014-11-05 04:35:45 UTC
I've split out a patch to fix this bug from the series for bug 525718. It's in this branch:

	https://github.com/zmedico/portage/tree/bug_412471

I've posted it for review here:

	http://thread.gmane.org/gmane.linux.gentoo.portage.devel/4749
Comment 4 Zac Medico gentoo-dev 2014-12-07 23:17:06 UTC
This is in the master branch now:

https://github.com/gentoo/portage/commit/4938b8a8a72e719b394a5c5b0c5030c160091d57
Comment 5 Brian Dolbec (RETIRED) gentoo-dev 2015-02-15 00:52:49 UTC
Released in portage-2.2.16.