C# 直接调用vs 委托vs动态调用vs动态类型vs反射,最佳性能测试
摘要:
懒得解释,自己看代码测试结果:Direct call:00:00:00.0742191Delegate Direct:00:00:00.0687487Method Factory(IL):00:00:00.2015243Direct IL:00:00:00.1980190New Type:00:00:00.0860233Reflection:00:00:02.4178550using System.Reflection;using System.Reflection.Emit;using MoeCard.Emit;using MoeCard.Reflection;namespace MoeCa 阅读全文
posted @ 2014-02-25 02:58 sumok 阅读(410) 评论(0) 推荐(0) 编辑