-
-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Data Structures: Delegates -> struct Generic Parameters #37
Labels
Enhancement
issues that suggest potential improvements
Comments
ZacharyPatten
added a commit
that referenced
this issue
Mar 1, 2020
ZacharyPatten
added a commit
that referenced
this issue
Mar 2, 2020
ZacharyPatten
added a commit
that referenced
this issue
Aug 23, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the enhancement
The data structures all need to be modified to allow struct generic parameters (
where struct, IAction<A>
,where struct, IFunc<A, B>
) instead of delegates (Action<A>
,Func<A, B>
).Purpose of enhancement
This is a massive performance boost because struct generic parameters can be inlined by the JIT but delegates currently are not. Delegates will still be supported via
ActionRuntime<A>
andFuncRuntime<A, B>
if the user prefers clean code over performance.Data Structures
The text was updated successfully, but these errors were encountered: