Gentoo Archives: gentoo-performance

From: Roman Gaufman <hackeron@×××××××××.com>
To: gentoo-performance@l.g.o
Subject: Re: [gentoo-performance] Re: portage performance
Date: Sat, 26 Jun 2004 21:12:35
Message-Id: 200406262221.35128.hackeron@dsl.pipex.com
In Reply to: Re: [gentoo-performance] Re: portage performance by Sri Gupta
1 On Saturday 12 June 2004 20:19, Sri Gupta wrote:
2 > Try using a JIT-style python compiler.
3 >
4 > #emerge psyco
5 > #nano -w `which emerge`
6 >
7 > Add the bit from try: to pass in like so:
8 >
9 > ----
10 > import os,sys
11 > os.environ["PORTAGE_CALLER"]="emerge"
12 > sys.path = ["/usr/lib/portage/pym"]+sys.path
13 >
14 > try:
15 > import psyco
16 > psyco.full()
17 > except ImportError:
18 > pass
19 >
20 > import
21 > emergehelp,xpak,string,re,commands,time,shutil,traceback,atexit,signal,s...
22 > ---
23 >
24 > use tabs for the indented bits. you can also try the experimental
25 > database support (I'm using it, seems fine)
26 >
27 > # mkdir /etc/portage
28 > # echo 'portdbapi.auxdbmodule="portage_db_anydbm.database"' >
29 > /etc/portage/modules # echo
30 > 'eclass_cache.dbmodule="portage_db_anydbm.database"' >>
31 > /etc/portage/modules
32 >
33 > Both of these speed up portage quite a bit...
34 >
35 > -Sri
36
37
38 Would like to know a bit more info about using a dbm database. I've found (and
39 reported) a way to use a mysql database with portage:
40 (http://bugs.gentoo.org/show_bug.cgi?id=51704) -- how does this dbm solution
41 compare? and where is the database stored?
42
43 --
44 gentoo-performance@g.o mailing list