C#调用IronPython和C方法效率差别
摘要:平均调用时间差别一秒左右。C#调用C++代码:[DllImport("UseCPP.dll")]public static extern int Add(int x, int y);C++代码:#include "stdafx.h"extern "C" __declspec(dllexport) int Add(int x, int y) { return x + y;}IronPython:public static int CSUsePyFunc(int x, int y) { ScriptRuntime pyRT = Pytho
阅读全文
posted @ 2012-07-13 21:31
浙公网安备 33010602011771号