[summerofcode] idea of speedup interpreter startup

Brett C. bac at OCF.Berkeley.EDU
Tue Jun 7 04:56:10 CEST 2005


Linan Wang wrote:
> Thanks.
> I'm looking into the source code, try to figure out things like frame,
> code, node :)
> Just like what you said, a proxy with a pool seems to be a plan. 
>>From python code to frame, each convert creat a gap. Is it possible to
> create a pool for all gaps?
> 

Don't know what you mean by "gap".

> I think the lazy importation may cause one problem that not all the
> code will be compiled after a script executed. For a module, if not
> all the codes compiled, how to generate .pyc file?
> 

If you are asking how the interpreter does it, it is automatic after
importation.  If you are asking how you can do it specificaly, use py_compile
(especially with ``-m`` on the command-line).

-Brett


More information about the summerofcode mailing list