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

Bug 45793

Summary: The python compiler, PSYCO, should be made an option via use variable PSYCO for performance.
Product: Gentoo Linux Reporter: Jerry McBride <mcbrides9>
Component: [OLD] Core systemAssignee: Python Gentoo Team <python>
Status: RESOLVED WONTFIX    
Severity: enhancement CC: crefff, gurligebis, radek
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: a patch against portage 2.0.50-r2 to add support for psyco

Description Jerry McBride 2004-03-26 04:13:35 UTC
Emerge runs so much faster when you use the PSYCO python compiler that I can't believe that it's not automatically included. We should at the least, reap the performance benefits of Psyco by making it a user configurable dependency via a use variable named; PSYCO. The Psyco ebuild is such a small package... let's use it...

Python seems to be the core script language for Gentoo, let's allow Gentoo users the option of running it in the most effcient manner possible.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Alastair Tse (RETIRED) gentoo-dev 2004-03-28 10:31:36 UTC
maybe if you could suggest patches to the python eclass or how it could be implemented.
Comment 2 Ahmed Farid 2004-03-28 22:38:24 UTC
Created attachment 28258 [details, diff]
a patch against portage 2.0.50-r2 to add support for psyco

usage:
1. emerge psyco
2. FEATURES=psyco emerge xxx
3. pray
Comment 3 Lukasz Strzygowski (RETIRED) gentoo-dev 2004-03-30 12:29:50 UTC
"""
+	try:
+		import psyco
+	except ImportError:
"""

after import psyco should be "psyco.full()".
Comment 4 Bjarke Istrup Pedersen (RETIRED) gentoo-dev 2004-06-03 07:08:56 UTC
There is a discussion going on in here: http://forums.gentoo.org/viewtopic.php?t=153921
Comment 5 Jason Stubbs (RETIRED) gentoo-dev 2004-06-06 08:02:42 UTC
*** Bug 53134 has been marked as a duplicate of this bug. ***
Comment 6 Jason Stubbs (RETIRED) gentoo-dev 2004-06-06 08:30:02 UTC
Psyco has a number of known bugs and most definately a number of unknown bugs as well. These may not show up with your testing just like they did not show up on mine. However, the bugs would show up in strange ways if psyco was introduced. This is not really acceptable given the number of users.

Before long, the "bottle-neck" code in portage will rewritten in C and made into python modules. This should give a bigger performance increase without introducing the issues listed above.