Gentoo Archives: gentoo-dev

From: magic-gentoo@××××××××××××××.de
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] speeding up usage of portage in e-file / portage file list
Date: Sat, 23 May 2020 20:02:22
Message-Id: ecb215d5-fb37-6ac1-5935-2a96c64eff99@devloop.de
1 Hi,
2 the current e-file tool of app-portage/pfl is written in bash. e-file is
3 a CLI tool which searches portagefilelist.de for a given file and list
4 additional informations based on the local portage. Latter is done by
5 grep'ing through the ebuild files which is fast but IMHO not very smart.
6
7 I rewrote e-file in python by using the portage API [1]. But loading the
8 API slows down the whole script. Is there any way to speed up my
9 implementation? Have I done something fundamentally wrong?
10
11 Thanks in advance
12 Daniel
13
14 [1] https://github.com/portagefilelist/client/blob/e-file-python/bin/e-file

Replies