Skip to content

1.4.1

Choose a tag to compare

@CharlieTap CharlieTap released this 12 Mar 20:06
· 15 commits to main since this release

Whats changed

  • +15% Execution Speed

I've been dialling in the interpreter loop as far as it can go in the instruction stack based interpreter, the bytecode produced is now what I could consider optimal. Theres another 20% that could be had if we moved to a instruction pointer based setup and I may well introduce this in the future.

  • Faster instantiation for large modules

Previously chasm ran all expressions through its runtime expression interpreter, this meant having to compile constant expressions at instantiation time. I've now introduced a small specialised constant expression evaluator which is entirely decoupled from chasms runtime interpreter/compiler pipeline. Don't expect anything drastic here, the primary motivation for doing this was for speeding up the wasm testsuite execution as it contains 1000's of small constant expressions