I wrote a bash script to improve search times in the portage tree (emerge -s often needs >5 sec, emerge --searchdesc runs for minutes). Would be a nice addition to gentoolkit or portage itself. It uses grep on a flat textfile for the search, the textfile can also be updated with the script (I have a patch to integrate it into emerge sync). It has a few restrictions: - only the latest version is indexed (it ignores masking) - it displays only the name and description of the package - there might be some false results (not seen yet, but possible) - update of the textfile takes some time (1-5 minutes) Advantages: - fery fast, returns almost instantly - can search for a pattern in name and description in one run (emerge can only search for one) - displays only packages with ebuilds available (if the textfile is current) - supports grep expressions and options
Created attachment 14670 [details] search and update script
Created attachment 17244 [details] updated fastsearch script new version, fixed a few small bugs and added a new "info" action.
Actually I don't think I'd like to have this in portage as it has several problems and in general esearch can do everything that fastsearch does. Maybe I'll add it to the GLEP 15 script repository, but I don't feel like supporting this script much.