I am currently calling a C# script file (http://www.csscript.net) from a C# app in Visual Studio 2010 using this method:
var script = new AsmHelper(CSScript.Load(
@"C:\temp\CSScriptTest\CSScriptTest\cstest.cs"));
script.Invoke("*.LoopTest");
But I’m noticing that the performance on this is about twice what it takes to call a similar IronPython script using this method:
var ironPythonRuntime = Python.CreateRuntime();
dynamic loadPython = ironPythonRuntime.UseFile(
@"C:\temp\IronPythonTest\IronPythonTest\pytest.py");
loadPython.LoopTest();
Is there a method to call a C# script that performs better?
Here is the answer I got from Oleg Shilo (the creator of CS-Script):