Skip to content

3.0.0

Compare
Choose a tag to compare
@bwrrp bwrrp released this 15 Jan 10:23

This release includes some breaking changes in the interest of, again, greatly reducing the number of allocations and improving overall performance. Matching very large inputs now no longer runs out of memory and can be up to 10 times faster than with 2.x.

  • Input for VM.execute is now an array. This speeds up access, and we haven't encountered any cases where the generator-like function would be beneficial.
  • The Trace.records array is gone. As each trace instance (excluding prefixes) can have at most one record, it is now available as Trace.record, saving a few array allocations.
  • Result.failingTraces has been removed. We had not found a use case for this so far.

Starting from this release, TypeScript typings are included for the built version.