[Python-Dev] VM imaging based launch optimizations for CPython?

Mikko Ohtamaa mikko+python at redinnovation.com
Fri Dec 26 22:46:14 CET 2008


On Mon, Dec 22, 2008 at 12:09 PM, Erno Kuusela <erno at iki.fi> wrote:

>
> unexec probably work out of the box on symbian, but...:
>
> http://mail.python.org/pipermail/python-dev/2003-May/035727.html
>
>
unexec() is pretty much what I was looking for. However, looks like its old
hack from 80s and cannot be applied as is to the modern environment.
Basically unexec() dumps the running application code (not specific to any
interpreter) and data segments out as a.out binary.

1) Generating a binary file is not possible on Symbian and iPhone
environments, because all binaries must be signed - however, we can probably
use a generic stub exe which loads data segment only

2) a.out format is deprecated

3) Dynamic DLLs are not managed - basically a show stopper

I hope I could find someone find enough OS fu to tell whether this is
possible with DLLs at all and what data pointers must be patched on each
unexec() call.

-Mikko
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20081226/c77f71bb/attachment-0001.htm>


More information about the Python-Dev mailing list