sklose / NCalc2

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

Limit the frequency of cleaning the expression cache #103

Closed david-brink-talogy closed 5 months ago

david-brink-talogy commented 5 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 5 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 5 months ago

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