[IronPython] IronPython 2.6 CodePlex Source Update

merllab at microsoft.com merllab at microsoft.com
Wed Dec 2 08:52:43 PST 2009


This is an automated email letting you know that sources 
have recently been pushed out.  You can download these newer 
sources directly from http://ironpython.codeplex.com/SourceControl/changeset/view/61957.

ADDED SOURCES
	$/IronPython/IronPython_Main/Src/IronPython/Compiler/Ast/GetParentContextFromFunctionExpression.cs
	$/IronPython/IronPython_Main/Src/IronPython/Compiler/Ast/GetGlobalContextExpression.cs
	$/IronPython/IronPython_Main/Src/IronPython/Compiler/Ast/DynamicGetMemberExpression.cs
	$/IronPython/IronPython_Main/Src/IronPython/Compiler/Ast/DynamicConvertExpression.cs
	$/IronPython/IronPython_Main/Src/IronPython/Compiler/Ast/LazyDynamicExpression.cs
	$/IronPython/IronPython_Main/Src/IronPython/Compiler/Ast/PythonConstantExpression.cs
	$/IronPython/IronPython_Main/Src/IronPython/Runtime/PythonContext.Generated.cs

MODIFIED SOURCES
	$/IronPython/IronPython_Main/Src/IronPython/Compiler/Ast/GetParentContextFromFunctionExpression.cs
	$/IronPython/IronPython_Main/Src/IronPython/Compiler/Ast/GetGlobalContextExpression.cs
	$/IronPython/IronPython_Main/Src/IronPython/Compiler/Ast/DynamicGetMemberExpression.cs
	$/IronPython/IronPython_Main/Src/IronPython/Compiler/Ast/DynamicConvertExpression.cs
	$/IronPython/IronPython_Main/Src/IronPython/Compiler/Ast/LazyDynamicExpression.cs
	$/IronPython/IronPython_Main/Src/IronPython/Compiler/Ast/PythonConstantExpression.cs
	$/IronPython/IronPython_Main/Src/IronPython/Compiler/Ast/AstMethods.cs
	$/IronPython/IronPython_Main/Src/IronPython/Compiler/Ast/PythonAst.cs
	$/IronPython/IronPython_Main/Src/IronPython/Compiler/Ast/NameExpression.cs
	$/IronPython/IronPython_Main/Src/IronPython/Compiler/Ast/MemberExpression.cs
	$/IronPython/IronPython_Main/Src/IronPython/Compiler/Ast/IndexExpression.cs
	$/IronPython/IronPython_Main/Src/IronPython/Compiler/Ast/IfStatement.cs
	$/IronPython/IronPython_Main/Src/IronPython/Compiler/Ast/FunctionDefinition.cs
	$/IronPython/IronPython_Main/Src/IronPython/Compiler/Ast/ForStatement.cs
	$/IronPython/IronPython_Main/Src/IronPython/Compiler/Ast/DictionaryExpression.cs
	$/IronPython/IronPython_Main/Src/IronPython/Compiler/Ast/ClassDefinition.cs
	$/IronPython/IronPython_Main/Src/IronPython/Compiler/Ast/CallExpression.cs
	$/IronPython/IronPython_Main/Src/IronPython/Compiler/Ast/BinaryExpression.cs
	$/IronPython/IronPython_Main/Src/IronPython/Compiler/UncollectableCompilationMode.cs
	$/IronPython/IronPython_Main/Src/IronPython/Compiler/ClosureExpression.cs
	$/IronPython/IronPython_Main/Src/IronPython/Runtime/Binding/PythonBinaryOperationBinder.cs
	$/IronPython/IronPython_Main/Src/IronPython/Compiler/Ast/WithStatement.cs
	$/IronPython/IronPython_Main/Src/IronPython/Compiler/Ast/WhileStatement.cs
	$/IronPython/IronPython_Main/Src/IronPython/Compiler/Ast/UnaryExpression.cs
	$/IronPython/IronPython_Main/Src/IronPython/Compiler/Ast/ScopeStatement.cs
	$/IronPython/IronPython_Main/Src/IronPython/IronPython.csproj
	$/IronPython/IronPython_Main/Src/IronPython/Runtime/PythonContext.Generated.cs
	$/IronPython/IronPython_Main/Src/IronPython/Runtime/Types/PythonType.Generated.cs
	$/IronPython/IronPython_Main/Src/IronPython/Runtime/Operations/PythonOps.cs
	$/IronPython/IronPython_Main/Src/IronPython/Runtime/PythonContext.cs
	$/IronPython/IronPython_Main/Src/Runtime/Microsoft.Dynamic/Generation/ToDiskRewriter.cs
	$/IronPython/IronPython_Main/Src/Scripts/generate_calls.py

CHECKIN COMMENTS
--------------------------------------------------------------------------------
Changeset Id: 1296901
Date: 12/1/2009 10:45:16 AM

Improves performance of code which is purely interpreted.  Also has some small benefits for startup perf.

The interpreter perf improvements mostly come out of not using our optimized call sites which perform really badly in the interpreter.  The reason they perform so badly is that we spend a lot of time accessing fields which is very very slow compared to doing it when compiled.  So instead we have some intermediate expressions which lazily create dynamic sites and hold onto them directly.  I’ve also added an instruction provider which gets our code context which just gets the optimized value.

I’ve also gone ahead and moved hot methods into IInstructionProvider implementations.  So now for hot methods like getting our code context from a function object this will run faster.

I’ve also implemented some more fast bindings – most of these are for more binary operations, but I’ve also added a few for calls which are hot.  

The end result of this is running interpreted (-X:CompilationThreshold 999999) our Pystones go from 18080.8 to 54864.4 (200% improvement).  

Big imports (no ngen) goes from 5.44 seconds to 5.16.
Big imports (ngen) goes from 3.11 seconds to 2.69.  Working set goes from to 64,088k to 60,164k.  This seems to all be a saving in shared pages (private working set is effectively unchanged).




(Shelveset: InterpreterPerfAndStartup2;REDMOND\dinov | SNAP CheckinId: 9955)



More information about the Users mailing list