Open mklemarczyk opened 3 years ago
It looks like the LambdaExpression is not a good way to go. The performance on simple tests execution goes bad very fast (about 5x slower).
The results can be not realistic as no performance tests are created. More over the failed test takes more time to process than passed test.
After review of performance the LambdaExpression can be beneficial in high usage cases where predicate is executed more than hundred(s) times a minute. As no type conversion and string parsing is involved.
Implementation will be provided by new class PredicateBuilder
.
Use LambdaExpression that can be compiled into reusable delegate. It is common way how the evaluators are implemented.