matheval / expression-evaluator-c-sharp

Matheval is a mathematical expressions evaluator library written in C#. Allows to evaluate mathematical, boolean, string and datetime expressions
https://matheval.org/
MIT License
107 stars 29 forks source link

Exceptions cause performance problems #20

Open kbeal2k opened 8 months ago

kbeal2k commented 8 months ago

Exceptions can cause major performance problems when making multiple calculations. In my case some mathematical expressions can have Double.NAN as a parameter and this makes things unusable when multiple exceptions start getting thrown.