You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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> and FuncRuntime<A, B> if the user prefers clean code over performance.
Data Structures
List
Stack
Queue
Heap
AVL Tree
Red Black Tree
Set
Map
Omnitree
GraphMap
GraphWeightedMap
The text was updated successfully, but these errors were encountered:
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: