Having been forced from the nice safe world of the old qpkg to the heinously slow equery, I began wondering about how to speed things up. On my P3550 Xeons, I took 'equery h ssl' from 58 seconds to 19 seconds. [I did several test, and it was very consistent'. All I had to do was install psyco, and add 5 lines to portage.py Reproducible: Always Steps to Reproduce: 1.emerge psyco 2.edit /usr/lib/portage/pym/portage.py 3.run any portage-dependant utility. Actual Results: On a P3-550 a 66% performance improvement on lookup for packages and details. Areas that I found be to affected: - emerge -g -- cuts my metapickle load time down DRAMATICALLY - equery l - equery h (+/-66% speed improvement) - fixpackages (no timeing date) sys-apps/portage-2.0.51.22-r3 dev-lang/python-2.4.2 --- old-portage.py~ 2005-11-02 16:30:38.669903318 -0800 +++ portage.py 2005-11-02 14:46:28.031019341 -0800 @@ -9,6 +9,11 @@ # =========================================================================== # START OF IMPORTS -- START OF IMPORTS -- START OF IMPORTS -- START OF IMPORT # =========================================================================== +try: + import psyco + psyco.full() +except: + pass try: import sys
We're not using psyco... A) it's x86 centric B) It bloats the hell out of memory when used in full mode C) it's helping to cover up crap code for portage Better notion is tracking down, and fixing the slow code..
you forgot (4) it sometimes crashes randomly like a pos