From 14d9f55a20f7e1d635b8ff3583da072f355547fc Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 20 Nov 2026 23:53:34 +0000 Subject: [PATCH] chore: version packages --- .changeset/zero-rust-join-index.md | 5 ----- .changeset/zero-rust-linux-allocator.md | 5 ----- .changeset/zero-rust-load-replica-in-one-pass.md | 5 ----- .changeset/zero-rust-poke-copies.md | 5 ----- .changeset/zero-rust-prepare-sorts-rows.md | 5 ----- .changeset/zero-rust-sqlite-frees.md | 5 ----- .changeset/zero-swift-big-pokes.md | 5 ----- .changeset/zero-swift-json-objects-at-size.md | 5 ----- .changeset/zero-swift-live-query-rows.md | 5 ----- .changeset/zero-swift-source-indexes.md | 5 ----- .changeset/zero-swift-virtual-list-size.md | 5 ----- apps/zbugs-gpui/Cargo.lock | 2 +- apps/zbugs-model/Cargo.lock | 2 +- apps/zbugs-rune/Cargo.lock | 2 +- packages/zero-rust-cli/CHANGELOG.md | 11 +++++++++++ packages/zero-rust-cli/package.json | 2 +- packages/zero-swift-cli/CHANGELOG.md | 10 ++++++++++ packages/zero-swift-cli/package.json | 2 +- rust/Cargo.lock | 4 ++-- rust/Cargo.toml | 4 ++-- swift/VERSION | 2 +- 21 files changed, 31 insertions(+), 65 deletions(-) delete mode 100644 .changeset/zero-rust-join-index.md delete mode 100644 .changeset/zero-rust-linux-allocator.md delete mode 100644 .changeset/zero-rust-load-replica-in-one-pass.md delete mode 100644 .changeset/zero-rust-poke-copies.md delete mode 100644 .changeset/zero-rust-prepare-sorts-rows.md delete mode 100644 .changeset/zero-rust-sqlite-frees.md delete mode 100644 .changeset/zero-swift-big-pokes.md delete mode 100644 .changeset/zero-swift-json-objects-at-size.md delete mode 100644 .changeset/zero-swift-live-query-rows.md delete mode 100644 .changeset/zero-swift-source-indexes.md delete mode 100644 .changeset/zero-swift-virtual-list-size.md diff --git a/.changeset/zero-rust-join-index.md b/.changeset/zero-rust-join-index.md deleted file mode 100644 index ce1c3c595f..0000000000 --- a/.changeset/zero-rust-join-index.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'zero-rust': patch ---- - -Opening a query with joins takes less time. zbugs' issue list at a limit of 1,000, on a replica of 8,000 rows, opens and closes in 6.3 ms instead of 6.6 ms on a Mac, and 21.3 ms instead of 24.2 ms on Linux. A join's index of its parent rows keeps no set for a join key with one parent, and none for a join on the parent's primary key. diff --git a/.changeset/zero-rust-linux-allocator.md b/.changeset/zero-rust-linux-allocator.md deleted file mode 100644 index cc11178ceb..0000000000 --- a/.changeset/zero-rust-linux-allocator.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'zero-rust': patch ---- - -The README suggests jemalloc as a Linux app's global allocator. glibc's `malloc` is slow at the client's many small allocations: with jemalloc, `Zero::new` on 8,097 stored rows takes 25 ms instead of 34 ms, and a poke of 1,000 rows on SQLite 4.9 ms instead of 6.1 ms, with the same memory. mimalloc is about as fast but holds a quarter more memory for 100,000 rows. diff --git a/.changeset/zero-rust-load-replica-in-one-pass.md b/.changeset/zero-rust-load-replica-in-one-pass.md deleted file mode 100644 index e3fe07ce9b..0000000000 --- a/.changeset/zero-rust-load-replica-in-one-pass.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'zero-rust': patch ---- - -`Zero::from_prepared` and `Zero::new` take less of the app's thread to load a stored replica. On a Mac, `from_prepared` takes 3.5 ms instead of 5.4 ms for a replica of 8,000 rows, and 2.0 ms instead of 2.6 ms for 2,000; `Zero::new` takes 22.8 ms instead of 23.7 ms for 8,000. On Linux, `from_prepared` takes 9.9 ms instead of 13.1 ms for 8,000 rows. The replica's map is built a level at a time from the stored rows, which come in key order, and the query sources load straight from it instead of from an add made for every row. diff --git a/.changeset/zero-rust-poke-copies.md b/.changeset/zero-rust-poke-copies.md deleted file mode 100644 index 2a171f2bf7..0000000000 --- a/.changeset/zero-rust-poke-copies.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'zero-rust': patch ---- - -Applying pokes takes less time. A first sync of 2,000 rows takes 3.2 ms instead of 3.6 ms on a Mac, and 6.6 ms instead of 7.0 ms with zbugs' issue list; on Linux, 7.8 ms instead of 8.8 ms, and 14.9 ms instead of 16.0 ms. A poke of 1,000 changed rows takes 2.33 ms instead of 2.45 ms on a Mac. A patch's operations are no longer copied to keep the last of each key, a one-column primary key is written straight into its row's key, and a source's index shares its sort order instead of copying it on every lookup. diff --git a/.changeset/zero-rust-prepare-sorts-rows.md b/.changeset/zero-rust-prepare-sorts-rows.md deleted file mode 100644 index a5a39991e7..0000000000 --- a/.changeset/zero-rust-prepare-sorts-rows.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'zero-rust': patch ---- - -`Zero::from_prepared` takes less of the app's thread. On a Mac, it takes 2.1 ms instead of 3.8 ms for a replica of 8,000 rows, and 1.6 ms instead of 2.2 ms for 2,000; on Linux, 6.2 ms instead of 9.6 ms for 8,000. `Zero::prepare` now also sorts each table's rows for the query sources on its own thread, so the app's thread only puts them into the sources and hydrates the first views. diff --git a/.changeset/zero-rust-sqlite-frees.md b/.changeset/zero-rust-sqlite-frees.md deleted file mode 100644 index 3103fe06e0..0000000000 --- a/.changeset/zero-rust-sqlite-frees.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'zero-rust': patch ---- - -On Linux, a client on SQLite storage applies pokes and mutations faster. A first sync of 2,000 rows with zbugs' issue list takes 17.5 ms of the app's thread instead of 26.4 ms, a poke of 1,000 changed rows 6.1 ms instead of 8.2 ms, and a mutation's round trip 51 µs instead of 107 µs. The store's thread freed the writes it was handed, which glibc does under the lock of the thread that allocated them, so the client's thread stalled on its own allocations; the writes now go back to be dropped on the client's thread. macOS didn't stall this way, and doesn't change. diff --git a/.changeset/zero-swift-big-pokes.md b/.changeset/zero-swift-big-pokes.md deleted file mode 100644 index 01559e9b6a..0000000000 --- a/.changeset/zero-swift-big-pokes.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'zero-swift': patch ---- - -Big pokes apply faster. A poke's rows are no longer sorted before they go into the replica, where their order doesn't matter, and a poke that changes a large share of the replica, such as the first sync, is diffed in one walk of the replica instead of sorting its keys and looking each one up. On a Mac, zbugs' first sync of 2,058 rows with the issue list open takes 11.7 ms instead of 13.8 ms, 5.7 ms instead of 8.0 ms with no view, and a poke of 1,000 rows into a 1,000-row view 3.3 ms instead of 3.8 ms. diff --git a/.changeset/zero-swift-json-objects-at-size.md b/.changeset/zero-swift-json-objects-at-size.md deleted file mode 100644 index 39608a14e4..0000000000 --- a/.changeset/zero-swift-json-objects-at-size.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'zero-swift': patch ---- - -The replica takes a fifth less memory: the rows it keeps as JSON objects no longer keep room for up to twice their columns. Parsed objects start as big as the last one parsed like them was and give up much spare room when they close, and rows turned into JSON objects start at their size. On a Mac, 100,000 rows of 10 columns with a view of them take 129 MB instead of 161 MB. Opening a stored replica and big pokes take 2% less time. diff --git a/.changeset/zero-swift-live-query-rows.md b/.changeset/zero-swift-live-query-rows.md deleted file mode 100644 index aaf0e0f7ff..0000000000 --- a/.changeset/zero-swift-live-query-rows.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'zero-swift': patch ---- - -A `LiveQuery` of many rows (and `@ZeroQuery`) updates faster: the rows it reads again copy the unchanged rows around them in runs instead of one at a time. On a Mac, an optimistic update with a live query of 1,000 rows takes 31 µs instead of 51 µs. diff --git a/.changeset/zero-swift-source-indexes.md b/.changeset/zero-swift-source-indexes.md deleted file mode 100644 index 0f5ce3b759..0000000000 --- a/.changeset/zero-swift-source-indexes.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'zero-swift': patch ---- - -Queries fetch and push their rows faster: a query source finds the index a fetch reads, and writes each index on a change, without writing the index's sort out as JSON to look it up. On a Mac, an optimistic update of an issue in zbugs' issue list takes 12% less time, and its first sync 6% less. diff --git a/.changeset/zero-swift-virtual-list-size.md b/.changeset/zero-swift-virtual-list-size.md deleted file mode 100644 index c313801315..0000000000 --- a/.changeset/zero-swift-virtual-list-size.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'zero-swift': patch ---- - -`VirtualList` scrolls with less work on the Mac's main thread: it tells SwiftUI its size (what it's offered, as before) instead of SwiftUI asking Auto Layout for it, over every row's views, each time the stack around the list laid out, which it did for each snapshot. In the TestHost's issue list on a Mac, the main thread's work per frame while scrolling falls by 15–30%. The list's size is the same in every layout. diff --git a/apps/zbugs-gpui/Cargo.lock b/apps/zbugs-gpui/Cargo.lock index 45fc11411e..a2002d2cb5 100644 --- a/apps/zbugs-gpui/Cargo.lock +++ b/apps/zbugs-gpui/Cargo.lock @@ -9312,7 +9312,7 @@ checksum = "6df3dc4292935e51816d896edcd52aa30bc297907c26167fec31e2b0c6a32524" [[package]] name = "zero-client" -version = "0.5.0" +version = "0.5.1" dependencies = [ "rusqlite", "serde", diff --git a/apps/zbugs-model/Cargo.lock b/apps/zbugs-model/Cargo.lock index 31909f4759..e073083e7d 100644 --- a/apps/zbugs-model/Cargo.lock +++ b/apps/zbugs-model/Cargo.lock @@ -107,7 +107,7 @@ dependencies = [ [[package]] name = "zero-client" -version = "0.5.0" +version = "0.5.1" dependencies = [ "serde", ] diff --git a/apps/zbugs-rune/Cargo.lock b/apps/zbugs-rune/Cargo.lock index d7b8ae126c..c9f1fe8134 100644 --- a/apps/zbugs-rune/Cargo.lock +++ b/apps/zbugs-rune/Cargo.lock @@ -4914,7 +4914,7 @@ checksum = "6df3dc4292935e51816d896edcd52aa30bc297907c26167fec31e2b0c6a32524" [[package]] name = "zero-client" -version = "0.5.0" +version = "0.5.1" dependencies = [ "futures-util", "rusqlite", diff --git a/packages/zero-rust-cli/CHANGELOG.md b/packages/zero-rust-cli/CHANGELOG.md index ab5fda9c07..45fd262bdc 100644 --- a/packages/zero-rust-cli/CHANGELOG.md +++ b/packages/zero-rust-cli/CHANGELOG.md @@ -1,5 +1,16 @@ # zero-rust +## 0.5.1 + +### Patch Changes + +- 8d84a26: Opening a query with joins takes less time. zbugs' issue list at a limit of 1,000, on a replica of 8,000 rows, opens and closes in 6.3 ms instead of 6.6 ms on a Mac, and 21.3 ms instead of 24.2 ms on Linux. A join's index of its parent rows keeps no set for a join key with one parent, and none for a join on the parent's primary key. +- cbea3dc: The README suggests jemalloc as a Linux app's global allocator. glibc's `malloc` is slow at the client's many small allocations: with jemalloc, `Zero::new` on 8,097 stored rows takes 25 ms instead of 34 ms, and a poke of 1,000 rows on SQLite 4.9 ms instead of 6.1 ms, with the same memory. mimalloc is about as fast but holds a quarter more memory for 100,000 rows. +- d29ff10: `Zero::from_prepared` and `Zero::new` take less of the app's thread to load a stored replica. On a Mac, `from_prepared` takes 3.5 ms instead of 5.4 ms for a replica of 8,000 rows, and 2.0 ms instead of 2.6 ms for 2,000; `Zero::new` takes 22.8 ms instead of 23.7 ms for 8,000. On Linux, `from_prepared` takes 9.9 ms instead of 13.1 ms for 8,000 rows. The replica's map is built a level at a time from the stored rows, which come in key order, and the query sources load straight from it instead of from an add made for every row. +- 7088c8b: Applying pokes takes less time. A first sync of 2,000 rows takes 3.2 ms instead of 3.6 ms on a Mac, and 6.6 ms instead of 7.0 ms with zbugs' issue list; on Linux, 7.8 ms instead of 8.8 ms, and 14.9 ms instead of 16.0 ms. A poke of 1,000 changed rows takes 2.33 ms instead of 2.45 ms on a Mac. A patch's operations are no longer copied to keep the last of each key, a one-column primary key is written straight into its row's key, and a source's index shares its sort order instead of copying it on every lookup. +- e79729e: `Zero::from_prepared` takes less of the app's thread. On a Mac, it takes 2.1 ms instead of 3.8 ms for a replica of 8,000 rows, and 1.6 ms instead of 2.2 ms for 2,000; on Linux, 6.2 ms instead of 9.6 ms for 8,000. `Zero::prepare` now also sorts each table's rows for the query sources on its own thread, so the app's thread only puts them into the sources and hydrates the first views. +- f3b25e1: On Linux, a client on SQLite storage applies pokes and mutations faster. A first sync of 2,000 rows with zbugs' issue list takes 17.5 ms of the app's thread instead of 26.4 ms, a poke of 1,000 changed rows 6.1 ms instead of 8.2 ms, and a mutation's round trip 51 µs instead of 107 µs. The store's thread freed the writes it was handed, which glibc does under the lock of the thread that allocated them, so the client's thread stalled on its own allocations; the writes now go back to be dropped on the client's thread. macOS didn't stall this way, and doesn't change. + ## 0.5.0 ### Minor Changes diff --git a/packages/zero-rust-cli/package.json b/packages/zero-rust-cli/package.json index 42ab5f4837..9957e2383f 100644 --- a/packages/zero-rust-cli/package.json +++ b/packages/zero-rust-cli/package.json @@ -1,6 +1,6 @@ { "name": "zero-rust", - "version": "0.5.0", + "version": "0.5.1", "description": "Generates the Rust row types, schema, and query builder of a Zero app for the Zero Rust client.", "license": "Apache-2.0", "repository": { diff --git a/packages/zero-swift-cli/CHANGELOG.md b/packages/zero-swift-cli/CHANGELOG.md index c02ebfa26b..1da2187f1e 100644 --- a/packages/zero-swift-cli/CHANGELOG.md +++ b/packages/zero-swift-cli/CHANGELOG.md @@ -1,5 +1,15 @@ # zero-swift +## 0.10.1 + +### Patch Changes + +- 85c3325: Big pokes apply faster. A poke's rows are no longer sorted before they go into the replica, where their order doesn't matter, and a poke that changes a large share of the replica, such as the first sync, is diffed in one walk of the replica instead of sorting its keys and looking each one up. On a Mac, zbugs' first sync of 2,058 rows with the issue list open takes 11.7 ms instead of 13.8 ms, 5.7 ms instead of 8.0 ms with no view, and a poke of 1,000 rows into a 1,000-row view 3.3 ms instead of 3.8 ms. +- eecc8aa: The replica takes a fifth less memory: the rows it keeps as JSON objects no longer keep room for up to twice their columns. Parsed objects start as big as the last one parsed like them was and give up much spare room when they close, and rows turned into JSON objects start at their size. On a Mac, 100,000 rows of 10 columns with a view of them take 129 MB instead of 161 MB. Opening a stored replica and big pokes take 2% less time. +- 90241b6: A `LiveQuery` of many rows (and `@ZeroQuery`) updates faster: the rows it reads again copy the unchanged rows around them in runs instead of one at a time. On a Mac, an optimistic update with a live query of 1,000 rows takes 31 µs instead of 51 µs. +- 18b4bba: Queries fetch and push their rows faster: a query source finds the index a fetch reads, and writes each index on a change, without writing the index's sort out as JSON to look it up. On a Mac, an optimistic update of an issue in zbugs' issue list takes 12% less time, and its first sync 6% less. +- 93d8c4a: `VirtualList` scrolls with less work on the Mac's main thread: it tells SwiftUI its size (what it's offered, as before) instead of SwiftUI asking Auto Layout for it, over every row's views, each time the stack around the list laid out, which it did for each snapshot. In the TestHost's issue list on a Mac, the main thread's work per frame while scrolling falls by 15–30%. The list's size is the same in every layout. + ## 0.10.0 ### Minor Changes diff --git a/packages/zero-swift-cli/package.json b/packages/zero-swift-cli/package.json index 48d21ad028..76c14d2454 100644 --- a/packages/zero-swift-cli/package.json +++ b/packages/zero-swift-cli/package.json @@ -1,6 +1,6 @@ { "name": "zero-swift", - "version": "0.10.0", + "version": "0.10.1", "description": "Generates the Swift row types and schema of a Zero app for the Zero Swift client.", "license": "Apache-2.0", "repository": { diff --git a/rust/Cargo.lock b/rust/Cargo.lock index 3d76cb57d3..f6ad456cd1 100644 --- a/rust/Cargo.lock +++ b/rust/Cargo.lock @@ -669,7 +669,7 @@ dependencies = [ [[package]] name = "zero-client" -version = "0.5.0" +version = "0.5.1" dependencies = [ "futures-util", "rusqlite", @@ -688,7 +688,7 @@ dependencies = [ [[package]] name = "zero-conformance" -version = "0.5.0" +version = "0.5.1" dependencies = [ "zero-client", ] diff --git a/rust/Cargo.toml b/rust/Cargo.toml index 1feea3ae36..f7fbeee8c0 100644 --- a/rust/Cargo.toml +++ b/rust/Cargo.toml @@ -3,14 +3,14 @@ resolver = "3" members = ["zero-client", "conformance", "codegen-tests", "benchmarks"] [workspace.package] -version = "0.5.0" +version = "0.5.1" edition = "2024" rust-version = "1.88" license = "Apache-2.0" repository = "https://github.com/wevm/zero" [workspace.dependencies] -zero-client = { path = "zero-client", version = "0.5.0" } +zero-client = { path = "zero-client", version = "0.5.1" } [workspace.lints.rust] unsafe_code = "forbid" diff --git a/swift/VERSION b/swift/VERSION index 78bc1abd14..571215736a 100644 --- a/swift/VERSION +++ b/swift/VERSION @@ -1 +1 @@ -0.10.0 +0.10.1