FastExpressionCompiler 3.0.0
FastExpressionCompiler is 10-40x times faster than Expression.Compile()
Showing the top 20 packages that depend on FastExpressionCompiler.
Packages | Downloads |
---|---|
Marten
Postgresql as a Document Db and Event Store for .Net Development
|
35 |
JasperFx.CodeGeneration
Code Generation Chicanery for .Net
|
25 |
JasperFx.CodeGeneration
Code Generation Chicanery for .Net
|
24 |
JasperFx.CodeGeneration
Code Generation Chicanery for .Net
|
20 |
JasperFx.CodeGeneration
Code Generation Chicanery for .Net
|
18 |
JasperFx.CodeGeneration
Code Generation Chicanery for .Net
|
13 |
JasperFx.CodeGeneration
Code Generation Chicanery for .Net
|
12 |
JasperFx.CodeGeneration
Code Generation Chicanery for .Net
|
11 |
JasperFx.CodeGeneration
Code Generation Chicanery for .Net
|
10 |
Marten
Postgresql as a Document Db and Event Store for .Net Development
|
10 |
JasperFx.CodeGeneration
Code Generation Chicanery for .Net
|
9 |
## v3.0.0 - Major feature release
This version contains a lot of fixes and improvements and as-little-as-possible breaking changes.
### **FastExpressionCompiler** and **FastExpressionCompiler.LightExpression**
- Performance and memory consumption are improved, especially for the expressions with the closure and for expressions with the nested lambdas.
- More expression types are supported.
- Many fixes in the IL Emit.
- Added `ToCSharpString()` extension method to output the compile-able C# code described by the expression (tries hard).
- Added `ToExpressionString()` extension method to output the valid expression construction syntax, so given an expression object you'll get e.g. `Lambda(New(...))`.
- Added optional `enum CompilerFlags { Default, NoInvocationLambdaInlining, EnableDelegateDebugInfo}` parameter for the compilation
- `EnableDelegateDebugInfo` adds the diagnostic info into the compiled delegate including its source Expression and C# code. Can be used as following:
```cs
var f = e.CompileFast(true, CompilerFlags.EnableDelegateDebugInfo);
var di = f.Target as IDelegateDebugInfo;
Assert.IsNotNull(di.Expression);
Assert.IsNotNull(di.ExpressionString);
Assert.IsNotNull(di.CSharpString);
```
### **FastExpressionCompiler.LightExpression**
- Now includes the `ExpressionVisitor`.
- Improves the compatibility (the drop-in replacement) between the `FastExpressionCompiler.LightExpression.Expression` and the `System.Linq.Expression`.
- Decreasing the memory consumed by the created expressions partially via implementing the `IArgumentProvider` and `IParameterProvider` for some expressions.
### The full list of the closed issues
[Milestone v3.0.0](https://github.com/dadhi/FastExpressionCompiler/milestone/19)
.NET Framework 4.5
- System.ValueTuple (>= 4.5.0)
.NET Standard 2.0
- System.Dynamic.Runtime (>= 4.3.0)
- System.Reflection.Emit.Lightweight (>= 4.7.0)
.NET Standard 2.1
- No dependencies.
Version | Downloads | Last updated |
---|---|---|
5.0.2 | 7 | 02/11/2025 |
5.0.1 | 5 | 12/29/2024 |
5.0.0 | 6 | 11/28/2024 |
4.2.2 | 6 | 10/18/2024 |
4.2.1 | 7 | 07/09/2024 |
4.2.0 | 23 | 05/01/2024 |
4.1.0 | 5 | 02/13/2024 |
4.0.2 | 7 | 02/13/2024 |
4.0.1 | 5 | 01/21/2024 |
4.0.0 | 5 | 03/20/2024 |
3.4.0-preview-01 | 8 | 12/17/2023 |
3.3.4 | 7 | 06/13/2023 |
3.3.3 | 5 | 06/13/2023 |
3.3.2 | 6 | 03/20/2024 |
3.3.1 | 5 | 06/13/2023 |
3.3.0 | 7 | 06/13/2023 |
3.2.2 | 7 | 06/13/2023 |
3.2.1 | 5 | 03/20/2024 |
3.2.0 | 6 | 06/13/2023 |
3.1.0 | 10 | 06/13/2023 |
3.1.0-preview-03 | 9 | 02/20/2024 |
3.1.0-preview-02 | 6 | 02/20/2024 |
3.1.0-preview-01 | 8 | 09/01/2023 |
3.0.6-preview-01 | 8 | 08/30/2023 |
3.0.5 | 6 | 06/14/2023 |
3.0.4 | 5 | 06/14/2023 |
3.0.3 | 6 | 06/14/2023 |
3.0.2 | 5 | 06/13/2023 |
3.0.1 | 7 | 06/13/2023 |
3.0.0 | 5 | 03/20/2024 |
3.0.0-preview-07 | 8 | 08/31/2023 |
3.0.0-preview-06 | 9 | 08/29/2023 |
3.0.0-preview-05 | 11 | 08/29/2023 |
3.0.0-preview-04 | 8 | 08/27/2023 |
3.0.0-preview-03 | 10 | 08/27/2023 |
3.0.0-preview-02 | 8 | 08/31/2023 |
3.0.0-preview-01 | 10 | 08/25/2023 |
2.0.0 | 9 | 06/13/2023 |
2.0.0-preview-03 | 10 | 08/27/2023 |
2.0.0-preview-02 | 7 | 08/28/2023 |
2.0.0-preview-01 | 10 | 08/29/2023 |
1.10.1 | 9 | 02/15/2024 |
1.10.0 | 7 | 01/14/2024 |
1.9.0 | 8 | 03/20/2024 |
1.8.0 | 8 | 06/13/2023 |
1.7.2 | 8 | 06/14/2023 |
1.7.1 | 7 | 06/13/2023 |
1.7.0 | 8 | 06/13/2023 |
1.6.0 | 9 | 06/13/2023 |
1.5.0 | 8 | 06/13/2023 |
1.4.0 | 7 | 06/13/2023 |
1.3.0 | 6 | 06/13/2023 |
1.2.2 | 6 | 06/13/2023 |
1.2.1 | 6 | 12/05/2023 |
1.2.0 | 8 | 06/13/2023 |
1.1.1 | 8 | 06/13/2023 |
1.1.0 | 5 | 03/20/2024 |
1.0.1 | 8 | 06/13/2023 |
1.0.0 | 15 | 06/13/2023 |
1.0.0-preview-04 | 7 | 08/31/2023 |
1.0.0-preview-03 | 8 | 08/25/2023 |
1.0.0-preview-02 | 9 | 08/25/2023 |
1.0.0-preview-01 | 6 | 08/28/2023 |