Maksim Volkau
Maksim Volkau
Has a different goal than the #259
It is required to support "static" delegates for the expressions with the Blocks, Trys, Gotos, e.g. in the case of `FastCompileToIL`.
- Reuse the temporary locals - Reuse the closure bound locals Related: https://github.com/dadhi/DryIoc/issues/211
Compare the IL code of the system compilation vs the FEC in the biggest test for #261
Related to - https://github.com/dadhi/DryIoc/issues/211 - https://github.com/dadhi/DryIoc/pull/268 Currently, FEC has a `TryCompileWithPreCreatedClosure` method with limited functionality without nested lambdas support. We may enable it so that big and deep expressions may...
Considering that ClosureInfo is something used for compilation only and then we do not need it, we may as well return it to the pool.
Currently, FEC is visiting the expression tree 2 times: - 1st is to collect the constants to construct the closure object (and also find the nested lambdas) - 2nd is...
Use property-based testing or similar (FsCheck, Expecto, other?) to generate random trees, compile and assert.