[Python-Dev] Embedded Python startup is slow

2011-03-24 Thread bruce bushby
Hi I have previously asked this question in python-list, however I think it belongs here. I'm running python 2.7.1 on an embedded Linux board and noticed it takes 1.8 seconds to execute the most simple "Hello World" script. Platform: cpu: 200Mhz ARM (ARM926EJ-) kernel: 2.6.38 uClibc: 0.92.1-rc2

Re: [Python-Dev] Embedded Python startup is slow

2011-03-24 Thread bruce bushby
My main concern was that a freshly compiled Python attempts to open 168 non-existent files before starting. I understand that an interpreted language is probably not the best choice for an embedded device (although it's very nice for prototyping) , Python really should know what exists after it's

Re: [Python-Dev] Embedded Python startup is slow

2011-03-24 Thread bruce bushby
the underlying "uClibc" frameworkbut then who refreshes the cache. Thanks for the thoughts and idea, if I find a nice solution I'll be sure to post an update. Bruce On Thu, Mar 24, 2011 at 4:18 PM, James Y Knight wrote: > On Mar 24, 2011, at 11:58 AM, bruce bushby wrot

Re: [Python-Dev] Embedded Python startup is slow

2011-03-24 Thread bruce bushby
it still happens. "...How did you measure that?..." I used "strace -c hello.py" This is not a dig at Python, I love PythonI was asking if I had missed a compile option or implementation trick. Bruce On Thu, Mar 24, 2011 at 5:05 PM, Stefan Behnel wrote: > bruce