On Tue, Mar 8, 2011 at 2:36 PM, bruce bushby <bruce.bus...@gmail.com> wrote: > Hi > I've been playing with running python on embedded linux. I thought I would > run some "straces" to see how the install went when I noticed python > attempts to "open" > loads of files that don't exist.....is there a way to prevent these "open" > attempts....they're responsible for 40% of my scripts execution time. > I was wondering if there is a way to prevent python from attempting to open > files I know are not there? >
I had a (sort of) similar problem recently with a python script on an N900 phone, with the startup time completely dominating the total runtime. I simply converted it into daemon instead, which solved the responsiveness problem for me. I wonder if that is applicable for your situation. -- regards, kushal -- http://mail.python.org/mailman/listinfo/python-list