Replies: 2 comments
-
|
Hi Graham, thanks for your feedback and good question. EvalEx is designed to be precise and safe, so it uses Converting the result with If your application only needs double and very high performance, EvalEx may not be the fastest choice, because |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for your reply. I came across the embedded compiler, Janino, and added support for this library alongside EvalEx. Janino's expression evaluator can use any supplied function but naturally exploits Java's Math class, with most methods supporting type double. And not having to use BigDecimal and compiling to byte code it is fast. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi
I recently stumbled on EvalEx and really impressed by both the library and documentation.
I have a data-processing application and EvalEx works well but I had a performance question.
In most real-world applications Java's type double will more than suffice and was wondering if going straight to double rather than first to BigDecimal and then to double would offer any performance improvement?
Or, is the performance hit when evaluate() is called as opposed to doubleValue() from BigDecimal.
In data-processing or time-series applications even bit of performance is key, and the reason for my post.
Thanks
Graham
Beta Was this translation helpful? Give feedback.
All reactions