Skip to content

Tascalate JavaFlow 2.4.0

Compare
Choose a tag to compare
@vsilaev vsilaev released this 03 Dec 12:41
· 133 commits to master since this release

This is a performance optimization release with API enhancements.

  1. Core Stack class was intensively revisited: expensive debug statements now are protected with the check for a debug logging level (this alone yields almost 300% of speed-up in corresponding tests); all primitive types now are handled in single long[] array to save time on arrays copying (1 instead of 4) when continuation is resumed.
  2. Continuation now may be created as mutli-shot (available previously, it was the only option) and as a single-shot. Unlike multi-shot continuations, single-shot ones may be resumed only once (i.e. Continuation.again() is not supported), but this functionality (single-shot) is what is necessary for majority of use-cases. Being capable to resume only once, one-shot continuations have very serious performance optimizations and outperforms multi-shot continuations by the factor of 2-2.5
  3. More well-known interfaces fro popular CDI containers are supported; Usage of continuations with JEE container was proved by an example for WildFly (see separate tascalate-javaflow-examples project)