Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 53134 - emerge performance patch
Summary: emerge performance patch
Status: RESOLVED DUPLICATE of bug 45793
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Portage team
URL: http://psyco.sourceforge.net/
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-06 07:25 UTC by Grzegorz Artur Daszuta
Modified: 2005-07-17 13:06 UTC (History)
0 users

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


Attachments
Emerge patch to use psyco (emerge-psyco.patch,516 bytes, patch)
2004-06-06 07:27 UTC, Grzegorz Artur Daszuta
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Grzegorz Artur Daszuta 2004-06-06 07:25:59 UTC
Emerge is a very useful tool, but it's terrible slow. The psyco python module could improve performance about twice (on my system). The way to do is quite simple. All that would be done is:

# emerge psyco

and apply following patch on /usr/bin/emerge

=================== CUT HERE ===================
--- emerge.orig 2004-06-01 11:47:05.228736680 +0200
+++ emerge      2004-06-01 11:46:52.508670424 +0200
@@ -1,8 +1,11 @@
-#!/usr/bin/python -O
+#!/usr/bin/python -OO
 # Copyright 1999-2003 Gentoo Technologies, Inc.
 # Distributed under the terms of the GNU General Public License v2
 # $Header: /home/cvsroot/gentoo-src/portage/bin/emerge,v 1.264 2004/02/08
 # 21:24:15 nakano Exp $

+import psyco
+psyco.full()
 import os,sys
 os.environ["PORTAGE_CALLER"]="emerge"
 sys.path = ["/usr/lib/portage/pym"]+sys.path
=================== CUT HERE ===================

Probably there's the way to improve emerge speed even more with psyco, but last days I have run out of time. This little patch with one additional dependence for portage package should be useful.

krefik,
crefff at tlen dot pl
Comment 1 Grzegorz Artur Daszuta 2004-06-06 07:27:35 UTC
Created attachment 32777 [details, diff]
Emerge patch to use psyco
Comment 2 Jason Stubbs (RETIRED) gentoo-dev 2004-06-06 08:02:41 UTC

*** This bug has been marked as a duplicate of 45793 ***