On Wed, May 23, 2012 at 12:44 PM, Carles F. Julià <carles.fernan...@upf.edu> wrote: >> My guess is that it's .NET's JIT compiler. How do you execute the scripts? >> Are you compiling them and caching the results or re-executing them each >> time? > > > I compile the script once and then I save a python object in a dynamic > variable on c#. Then I access the rest of the python code from there all the > time.
To save the most startup time, you should compile all Python code to a DLL using clr.CompileModules, and then load that precompiled assembly. http://ironpython.net/documentation/dotnet/dotnet.html#compiling-python-code-into-an-assembly Ideally you'd do this with all Python code, including the standard library. ~js _______________________________________________ Ironpython-users mailing list Ironpython-users@python.org http://mail.python.org/mailman/listinfo/ironpython-users