1 |
Bob Miller wrote: [Fri Dec 05 2003, 01:46:10PM EST] |
2 |
> Second, is there anything wrong with Python as an implementation |
3 |
> language? If you think Python is too slow, think again. On nearly |
4 |
> every portage operation I do, the CPU is mostly idle -- it's the disk |
5 |
> that's thrashing (according to gkrellm). The key to improving |
6 |
> portage's performance is to get it to open fewer files. |
7 |
|
8 |
Sort of. It's true that there's a lot that could be done to improve |
9 |
portage performance without changing languages. Nonetheless, even the |
10 |
smallest test shows that python has a poor startup time. |
11 |
|
12 |
$ time python -c 'print "hi"' |
13 |
user 0m0.023s |
14 |
sys 0m0.004s |
15 |
|
16 |
$ time perl -e 'print "hi\n"' |
17 |
user 0m0.003s |
18 |
sys 0m0.003s |
19 |
|
20 |
-- |
21 |
Aron Griffis |
22 |
Gentoo Linux Developer (alpha / ia64 / ruby / vim) |
23 |
Key fingerprint = E3B6 8734 C2D6 B5E5 AE76 FB3A 26B1 C5E3 2010 4EB0 |