Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added a cache to `Function` which stores wrapped function. This allows Wrap to be called multiple times without lots of allocations of the same thing. * Moved creation of `parameterTypes` array to after the cache is checked (one less allocation in the cached path). * Added a test which detects incorrectly cached functions (due to covariant return). * Update src/Function.Wrap.tt Co-authored-by: Konstantin Preißer <[email protected]> * Regenerated `Function.Wrap.cs` to include changes added in the previous commit --------- Co-authored-by: Konstantin Preißer <[email protected]>
- Loading branch information