FastExpressionCompiler 2.0.0

FastExpressionCompiler is 10-40x times faster than Expression.Compile()

Install-Package FastExpressionCompiler -Version 2.0.0
dotnet add package FastExpressionCompiler --version 2.0.0
<PackageReference Include="FastExpressionCompiler" Version="2.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add FastExpressionCompiler --version 2.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release Notes

v2.0.0
Developed with a help of @jogibear9988, @dzmitry-lahoda, @MaceWindu,
and other contributors - kudos to all of them!

- removed: `ExpressionInfo` was moved into separate package `FastExpressionCompiler.LigthExpression`
with all the functionality of the FEC. The `ExpressionInfo` itself was renamed to `Expression` for more simple drop-in replacement.

- added: #57 Consider signed package version!
- added: #59 Support compiling delegates with ref and out parameters
- added: #78 Lambda<Func<int>>(Block(Label(Label(typeof(int)), Constant(7)))) is not supported
- added: #88 Lambda<Func<IntPtr>>(Block(Constant(IntPtr.Zero)))
- added: #91 Support for MultiplyAssign, AddAsiggn, DivideAssign
- added: #98 % and bit operators are not supported
- added: #101 Some Assign Modes are not yet supported
- added: #102 Label and Goto Expression not yet implemented
- added: #105 Bit Expression Types are not yet supported
- added: #106 ExpressionType.Power not supported
- added: #107 Check if xxxAssigns also work with Variables
- added: #118 Support for Expression.Variable (in a Expression.Block)
- added: #127 Switch is not supported
- added: #130 Net Framework Expression compiler generates perfromanter Code for isNull check
- added: #138 Optimize Compilation of nested Lambdas

- fixed: #83 Issues with linq2db tests
- fixed: #92 Expression not compilable
- fixed: #93 Comparison to "null" does not work when not Typed
- fixed: #95 Ref support not yet working completely
- fixed: #124 LightExpression wrong Type
- fixed: #131 Linq2db - Test for JIT compiler internal limitation
- fixed: #137 Problem with Reading & Writing of Struct Fields.
- fixed: #146 Boolean parameter value changed from false to true
- fixed: #147 'Common Language Runtime detected an invalid program' with int.TryParse
- fixed: #151 'Attempt to read protected memory'
- fixed: #152 int.MinValue access throws 'Method not supported'
- fixed: #154 Equals Expression does not call "Equals" of class (in MS Code)
- fixed: #156 Invoking an Action constant fails with 'Common Language Runtime detected an invalid program'
- fixed: #159 Condition with converted numeric comparisons gives unexpected result
- fixed: #162 Float - short numeric comparisons with conversions gives unexpected result
- fixed: #163 Add of Nullable Int, etc does not work correctly
- fixed: #165 Int and Decimal to Double conversion issues
- fixed: #170 Problems with ref parameters
- fixed: #172 Using FEC to compile a property setter with an enum value sets the property to random values

Showing the top 2 GitHub repositories that depend on FastExpressionCompiler:

Repository Stars
MapsterMapper/Mapster
A fast, fun and stimulating object to object Mapper
itdos/Dos.ORM
Dos.ORM(原Hxj.Data)于2009年发布,2015年正式开源。在开发过程中参考了NBear与MySoft,吸取了他们的一些精华,加入新思想,同时参考EF的Lambda语法进行大量扩展。该组件已在数百个成熟项目中应用。官方网站:http://ITdos.com/Dos/ORM/Index.html 交流QQ群:60831381

Version History

Version Downloads Last updated
2.0.0 22,147 1/25/2019
2.0.0-preview-03 456 11/9/2018
2.0.0-preview-02 544 10/25/2018
2.0.0-preview-01 256 10/24/2018
1.10.1 12,076 8/8/2018
1.10.0 323 8/3/2018
1.9.0 716 7/24/2018
1.8.0 5,264 6/24/2018
1.7.2 3,576 6/7/2018
1.7.1 3,461 3/27/2018
1.7.0 5,628 3/17/2018
1.6.0 7,177 12/3/2017
1.5.0 1,504 11/12/2017
1.4.0 5,889 9/9/2017
1.3.0 534 8/28/2017
1.2.2 846 8/8/2017
1.2.1 466 8/8/2017
1.2.0 466 8/8/2017
1.1.1 68,427 7/18/2017
1.1.0 427 7/13/2017
1.0.1 878 5/26/2017
1.0.0 755 4/2/2017
1.0.0-preview-04 429 3/31/2017
1.0.0-preview-03 643 3/30/2017
1.0.0-preview-02 415 3/29/2017
1.0.0-preview-01 510 3/23/2017