[Python-Dev] Embedded Python startup is slow
Paul Boddie
paul at boddie.org.uk
Fri Mar 25 01:20:34 CET 2011
bruce bushby wrote:
>
> My main concern was that a freshly compiled Python attempts to open 168
> non-existent files before starting.
This has been a longstanding problem with CPython and, despite assertions to
the contrary, a significant factor on some embedded systems.
> 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 just been compiled....ie before
> any corrupting modules or other nonsense has been added.
>
> It appears it is hard coded to open these files regardless of any
> "configure" options.
You might want to look at the following Wiki page:
http://wiki.python.org/moin/EmbeddedPython
Since this topic has come up a few times before, I thought it might be time to
collect references to it as well as to other topics that people doing
embedded work might be interested in, along with the recurring problems that
seem to get solved, probably all too frequently from scratch, outside the
CPython development scene. (Just looking at an average cross-compilation
issue in the tracker is likely to fill you with despair if you're waiting for
a resolution in the official releases, unfortunately.)
Paul
More information about the Python-Dev
mailing list