This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author neologix
Recipients Thomas.Smith, dmalcolm, ezio.melotti, liang, neologix, pitrou, tim.peters
Date 2010-04-17.18:11:22
SpamBayes Score 3.0542576e-08
Marked as misclassified No
Message-id <1271527885.36.0.938870938396.issue7332@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2010-04-17 18:11:25neologixsetrecipients: + neologix, tim.peters, pitrou, ezio.melotti, dmalcolm, liang, Thomas.Smith
2010-04-17 18:11:25neologixsetmessageid: <1271527885.36.0.938870938396.issue7332@psf.upfronthosting.co.za>
2010-04-17 18:11:23neologixlinkissue7332 messages
2010-04-17 18:11:23neologixcreate