Message103417
Ok, I've done too some trivial benchmarking on my Linux box, and I get this:
right now:
$ time ./python /tmp/test_import.py
real 0m1.258s
user 0m1.111s
sys 0m0.101s
with mmap:
$ time ./python /tmp/test_import.py
real 0m1.262s
user 0m1.170s
sys 0m0.090s
with malloc only:
$ time ./python /tmp/test_import.py
real 0m1.213s
user 0m1.111s
sys 0m0.099s
The test script just imports every module available.
So I'd agree with Antoine, and think we should just use malloc. The attached patch marshal_stack.diff just does that. |
|
Date |
User |
Action |
Args |
2010-04-17 18:11:25 | neologix | set | recipients:
+ neologix, tim.peters, pitrou, ezio.melotti, dmalcolm, liang, Thomas.Smith |
2010-04-17 18:11:25 | neologix | set | messageid: <1271527885.36.0.938870938396.issue7332@psf.upfronthosting.co.za> |
2010-04-17 18:11:23 | neologix | link | issue7332 messages |
2010-04-17 18:11:23 | neologix | create | |
|