Skip to content

0.18.1

Choose a tag to compare

@benoitc benoitc released this 03 Dec 22:28
· 9 commits to main since this release
6021c70

Large binary modules use less memory during loading, and component images
with tables that reference functions in other cores restore faster.

  • Binary module loading. When a binary defines more than 256 functions,
    wasm:load/1 and wasm:compile/1 check syntax and validate one body
    at a time. Binary compilation also caps its requested minimum process
    heap at 1,048,576 words. On an M5 Pro Mac mini, a cold load of the
    12.7 MB Linux kernel went from 1,357 to 176 MiB peak RSS and from 499
    to 350 ms. The public decoder still returns decoded instructions, and
    malformed and invalid modules keep their error classifications.
    Load measurements.
  • Component image restore. Restore writes each affected table once
    when reconnecting function references across cores. Previously it copied
    the whole table for each reference. On the Python calculator component,
    a call using a restored image went from 327 to 72 ms.
    Restore measurements.
  • Module cache tests. The concurrent-load tests now control when a
    module is published so they reliably exercise callers waiting for it.

Applications can keep their existing compiled units and snapshot images.