Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 45793 - The python compiler, PSYCO, should be made an option via use variable PSYCO for performance.
Summary: The python compiler, PSYCO, should be made an option via use variable PSYCO f...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Python Gentoo Team
: 53134 (view as bug list)
Depends on:
Reported: 2004-03-26 04:13 UTC by Jerry McBride
Modified: 2005-05-07 07:12 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---

a patch against portage 2.0.50-r2 to add support for psyco (emerge.psyco.diff,504 bytes, patch)
2004-03-28 22:38 UTC, Ahmed Farid
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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:
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

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:
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.