Skip to content
This repository has been archived by the owner on Jul 30, 2020. It is now read-only.
/ fastreflect Public archive

C# reflection wrappers that provide portable, faster, and more natural APIs

License

Notifications You must be signed in to change notification settings

jacobdufault/fastreflect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fastreflect

C# reflection wrappers that provide portable, faster, and more natural APIs.

This library will soon power the reflection behind Full Inspector and Full Serializer.

Portable

Unity has many export platforms. Some of them, like Windows Metro, use an entirely different .NET profile and runtime, which uses different reflection APIs. FastReflect wraps these separate APIs behind a clean interface.

Fast

FastReflect is designed to provide accelerated reflection operations, even on AOT-only .NET runtimes like il2cpp or mono AOT. This is accomplished by emitting C# files which are then included inside of the build process. FastReflect automatically discovers these auto-generated classes and uses them to eliminate all almost reflection.

If you're just doing a one-off reflection call, it is probably not worthwhile to use FastReflect, as there is going to be some (minimal) initialization overhead. The acceleration is only really useful when reflection calls are being run over and over again.

  • Limitation: FastReflect can only accelerate publicly/internally accessible fields/members.

Licensing

Freely available under the MIT license.

About

C# reflection wrappers that provide portable, faster, and more natural APIs

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages