sklose / NCalc2

expression evaluator for .NET with built-in compiler
MIT License
171 stars 57 forks source link

Limit the frequency of cleaning the expression cache #103

Closed david-brink-talogy closed 7 months ago

david-brink-talogy commented 8 months ago

101 illustrated the complexity of caching. Rather than overhaul caching, this PR limits the clean frequency to every 1000 new compilations.

Bykiev commented 8 months ago

Will it be better to make the number of compilations customizable? Maybe someone prefer the old behaviour, when cache is cleaned on each compilation?

Bykiev commented 7 months ago

I think we should also increase the minor version as new parameter introduced