[IronPython] Embedding IronPython

Christian Schmidt christian2.schmidt at gmx.de
Wed Dec 31 11:50:16 CET 2008


Hi Josh,

>> CompiledCode cc = src.Compile();

This will leak memory. So you will run out of memory after a while (in 
our case after 100'000 compiles on x86).
[http://www.codeplex.com/IronPython/WorkItem/View.aspx?WorkItemId=20399]

>> Is this going to work or will I run into threading problems?  In other 
>> words, is the ScriptEngine thread-safe?  Will it serialize all of my 
>> cc.Execute() calls?  Any other insight into its behavior in this 
>> regard would be appreciated.

I think globals and imports will be shared. So modifying them might give 
unexpected results.

Cheers,
Christian



More information about the Ironpython-users mailing list