Am 23.05.2020 um 22:20 schrieb Zac Medico:
On 5/23/20 1:02 PM, magic-gen...@damage.devloop.de wrote:
I rewrote e-file in python by using the portage API [1]. But loading the
API slows down the whole script. Is there any way to speed up my
implementation? Have I done something fundamentally wrong?

When I patched the portage API out of your script, I saw the run time
drop from 4.2 seconds to 3.2 seconds with this patch:
...

Are your results worse than mine?

Nope, but maybe the phrase "loading the API" was misleading. I'd like to replace it with: "But using the API slows down the whole script.". This means it is much slower to get the additional informations by portage API than just grep'ing throught the ebuild files. If I run the python e-file on my machine it takes 3.2 seconds for a single file. The bash e-file show the same result within a second or so.

regards
Daniel



Reply via email to