Skip to content

v7.0.0-beta.1

Pre-release
Pre-release
Compare
Choose a tag to compare
@epoberezkin epoberezkin released this 10 Oct 17:41

See v7.0.0-beta.0 for changes from v6.

Switched to syntax tree for code generation.

Added code optimizations:

  • removes empty and unreachable branches.
  • removes unused variable declarations.
  • replaces variables that are used only once and assigned expressions that are explicitly marked as "constant" (i.e. having referential transparency) with the expressions themselves.

These optimizations reduce the size of generated code by more than 10% (based on the tests), removing over 16% of statements in compiled code.

Option code.optimize to control optimization - one optimization pass by default.

See Code optimization for more details.