Re: performance, my implementation is not performance optimized, but in my experience Java is very fast. According to this benchmark Java is only about 2x slower than pure C (also known as “portable assembly”).
Yeah, the benchmark game. But arithmetic coding and the implied bit twiddling isn’t exactly the strength of Java. On the other hand in this case the overhead of you in-sync de/encoding abstraction may be decisive.
Thanks for the feedback!
Re: performance, my implementation is not performance optimized, but in my experience Java is very fast. According to this benchmark Java is only about 2x slower than pure C (also known as “portable assembly”).
Yeah, the benchmark game. But arithmetic coding and the implied bit twiddling isn’t exactly the strength of Java. On the other hand in this case the overhead of you in-sync de/encoding abstraction may be decisive.