在linux中使用mono运行两个可执行文件时性能是否有任何差异,如果:
1)一个可执行文件是先前在windows(例如VS)中从c#源代码编译的.
2)其他可执行文件是使用linux中的gmcs从同一源代码编译的.
我使用此代码使用IronPython执行python表达式.
ScriptEngine engine = Python.CreateEngine();
ScriptScope scope = engine.CreateScope();
scope.SetVariable("m", mobject);
string code = "m.ID > 5 and m.ID < 10";
ScriptSource source =
engine.CreateScriptSourceFromString(code, SourceCodeKind.Expression);
source.Execute(scope);
Run Code Online (Sandbox Code Playgroud)
有没有办法将生成的表达式树作为c#对象,例如BlockExpression
?