Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(zql): move splitting of edits up to source #3936

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

grgbkr
Copy link
Contributor

@grgbkr grgbkr commented Mar 6, 2025

This slightly simplifies take and join logic, but more importantly it avoids having to add fairly complex overlay logic in take and join to correctly handle split pushes. Instead the overlay logic for edits split into a remove and add is centralized at the source layer.

Copy link

vercel bot commented Mar 6, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
replicache-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 7, 2025 10:00pm
zbugs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 7, 2025 10:00pm

Copy link

github-actions bot commented Mar 6, 2025

🐰 Bencher Report

Branchgrgbkr/simplify-edit
Testbedlocalhost
Click to view all benchmark results
BenchmarkFile SizeBenchmark Result
kilobytes (KB)
(Result Δ%)
Upper Boundary
kilobytes (KB)
(Limit %)
zero-package.tgz📈 view plot
🚷 view threshold
1,005.78 KB
(+0.06%)Baseline: 1,005.21 KB
1,025.31 KB
(98.10%)
zero.js📈 view plot
🚷 view threshold
181.88 KB
(+0.19%)Baseline: 181.54 KB
185.17 KB
(98.22%)
zero.js.br📈 view plot
🚷 view threshold
50.76 KB
(+0.22%)Baseline: 50.65 KB
51.66 KB
(98.26%)
🐰 View full continuous benchmarking report in Bencher

Copy link

github-actions bot commented Mar 6, 2025

🐰 Bencher Report

Branchgrgbkr/simplify-edit
Testbedlocalhost
Click to view all benchmark results
BenchmarkThroughputBenchmark Result
operations / second (ops/s)
(Result Δ%)
Lower Boundary
operations / second (ops/s)
(Limit %)
src/client/zero.bench.ts > basics > All 1000 rows x 10 columns (numbers)📈 view plot
🚷 view threshold
82.80 ops/s
(+5.25%)Baseline: 78.67 ops/s
61.03 ops/s
(73.71%)
src/client/zero.bench.ts > with filter > Lower rows 500 x 10 columns (numbers)📈 view plot
🚷 view threshold
107.00 ops/s
(+8.74%)Baseline: 98.40 ops/s
80.49 ops/s
(75.23%)
🐰 View full continuous benchmarking report in Bencher

@grgbkr grgbkr changed the title refactor(zql): pushing splitting of edits up to source refactor(zql): move splitting of edits up to source Mar 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant