Skip to content

NetWasm.UI 0.14.0

Choose a tag to compare

@github-actions github-actions released this 17 Nov 20:33
· 29 commits to main since this release

Changed

  • nwui.dom keeps the browser's compiled code for applying a batch across the browser's own
    garbage collections. It created a reader object per batch, and when a collection freed the
    shape of those short-lived readers (or of a cleared list's rows) the browser threw away the
    code compiled for them, so the next batch ran slower while it was compiled again. One reader
    now reads every batch, and each template keeps one node shaped like its clones' root.
  • A template clone releases its node ids with one op (new ReleaseBlock op) instead of one per
    node, and clones whose ids follow each other share that op. Clearing a list of 1,000 rows
    sends 18 bytes instead of 25 KB, and replacing one sends a third less. A host of your own has
    to handle the new op.
  • The keyed list builds no table of the old keys' positions when none of them stays in the new
    list (a list replaced by new rows, or rows removed from one end).
  • The benchmark runner forces the same last-resort GC before the measured click as
    js-framework-benchmark does, instead of a plain one.