20050927 Tuesday September 27, 2005

Big Freaking Numbers III

Remember that I talked about the different flavors of ExpressionBuilders in project BigNumbers a while ago? At this stage, there are two of them. One implementation turns the String expression into an Expression implementation that is interpreted for every evaluation. The other implementation took a different (and pretty fancy) approach by compiling the String expression into a full-fledged Java class on the fly.

Today, I did a benchmark to see which one would be more performant. The results are slightly dissapointing. I was kind of hoping that the JIT-compiling version of the ExpressionBuilder would outperform the other one, but it doesn't. *sigh* I expected the interpreter to outperform the other ExpressionBuilder in case of ad-hoc expressions, so I wasn't too surprised when that turned out to be true. However, the JIT-compiling version of the ExpressionBuilder only starts to outperform the interpreter version after 3000-4000 evaluations. And then only by microseconds.


( Sep 27 2005, 03:15:42 PM CEST ) Permalink Comments [2]

BigNumbers -> Maven Beta 2

I just moved project BigNumbers to Maven 2 Beta 1. There are a couple of things that you can expect to occur during the next few weeks:

  • A couple of tests to verify the performance of the different Expression implementations.
  • A refactored project structure that needs to be a little bit more friendly for CVS.
  • A better interpreter. (One that the stuff used by the JIT compiling implementation.)
  • A better parser. (One that doesn't choke on "4 -a".)
  • Power function support.
  • A new release.
( Sep 27 2005, 12:51:21 AM CEST ) Permalink Comments [0]