Code Monkey home page Code Monkey logo

dynemit's Introduction

DynEmit

NuGet NuGet Downloads
A NuGet for simply generate ASM through EMIT in .NET with optimizing performance.
使用IL动态生成字节码的NuGet包,可以大幅优化程序部分场景性能和创造更多可能。

Language

简体中文
English

特点

  • 低成本学习
  • API友好,对底层封装完善,几乎零接触OpCodes等低代码
  • 几乎无损耗操作,通过在编译期解决个性化需求来优化程序性能,且大幅优化反射性能
  • 更为友好的编写逻辑,及时抛出报错。

示例

更多示例请在Wiki界面查看:
例如,调用Console的WriteLine方法打印123

MethodInfo writeLine = typeof(Console).GetMethod("WriteLine", new[] { typeof(string) })!;
DynEmitMethod method = new ("Say",null,null);
DynString dynString = method.CreateLocalVariable("123");
method.ActionStaticMethod(writeLine, new () { dynString });
method.Invoke(typeof(Action));

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.