Skip to content

Sprite v0.8.0

Choose a tag to compare

@HundredBillion HundredBillion released this 17 Nov 21:23
· 48 commits to master since this release
ff71c30

What changed

  • Row patches for long lists. A new Surface message, list_patch (feature virtual-list-patch-v1), changes part of a list instead of resending all of it. A one-row change to a 2,029-row list takes about 0.6 ms in the host, down from about 5.5 ms; on 20,000 rows, 1.4 ms instead of 21.7 ms. A patch the host refuses leaves the list as it was.
  • Faster list_rows. Whole lists are read on a typed fast path, with a larger socket receive buffer. A 2,029-row list takes about 5.4 ms, down from 10.9 ms.
  • Less work per update. Rows are shared between revisions rather than copied, and the row index is corrected in place after a patch.

Compatibility

Existing clients keep working: list_rows is unchanged, and list_patch is used only by clients that see virtual-list-patch-v1 in the capabilities. sprite.nvim v0.7.0 and later uses it.

Validation

cargo test --workspace and clippy pass on the release commit, including the allocation budget test (100,000 rows) and a property test that a patch leaves the list exactly as a full replacement would.