perf(wa-sqlite): bypass queued materialization broadcasts - #163
Open
marcus-pousette wants to merge 3 commits into
Open
perf(wa-sqlite): bypass queued materialization broadcasts#163marcus-pousette wants to merge 3 commits into
marcus-pousette wants to merge 3 commits into
Conversation
marcus-pousette
force-pushed
the
codex/shared-worker-materialized-fastpath
branch
2 times, most recently
from
June 3, 2026 13:27
1b4ef0c to
46f9570
Compare
marcus-pousette
marked this pull request as ready for review
June 3, 2026 13:50
This was referenced Jun 3, 2026
marcus-pousette
force-pushed
the
codex/shared-worker-materialized-fastpath
branch
from
July 12, 2026 15:34
77831c9 to
36bceea
Compare
marcus-pousette
changed the base branch from
main
to
fix/wa-sqlite-opfs-init-fallback
July 12, 2026 15:35
marcus-pousette
force-pushed
the
fix/wa-sqlite-opfs-init-fallback
branch
from
July 13, 2026 14:31
23728ac to
ed2a220
Compare
marcus-pousette
force-pushed
the
codex/shared-worker-materialized-fastpath
branch
from
July 13, 2026 14:31
36bceea to
d61997c
Compare
marcus-pousette
force-pushed
the
fix/wa-sqlite-opfs-init-fallback
branch
from
July 14, 2026 20:36
ed2a220 to
f57f74c
Compare
marcus-pousette
force-pushed
the
codex/shared-worker-materialized-fastpath
branch
from
July 14, 2026 20:37
d61997c to
f8be4fe
Compare
marcus-pousette
force-pushed
the
codex/shared-worker-materialized-fastpath
branch
from
July 15, 2026 06:45
f8be4fe to
5b6831f
Compare
marcus-pousette
force-pushed
the
fix/wa-sqlite-opfs-init-fallback
branch
2 times, most recently
from
July 15, 2026 07:16
f36e6d7 to
7f7b5e3
Compare
marcus-pousette
force-pushed
the
codex/shared-worker-materialized-fastpath
branch
from
July 15, 2026 07:16
5b6831f to
6a918bb
Compare
marcus-pousette
force-pushed
the
fix/wa-sqlite-opfs-init-fallback
branch
from
July 15, 2026 08:01
7f7b5e3 to
b10857c
Compare
marcus-pousette
force-pushed
the
codex/shared-worker-materialized-fastpath
branch
from
July 15, 2026 08:01
6a918bb to
391a65f
Compare
marcus-pousette
force-pushed
the
fix/wa-sqlite-opfs-init-fallback
branch
2 times, most recently
from
July 16, 2026 11:30
853fa52 to
386c1bd
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
SharedWorker materialization notifications are one-way events, but they currently travel through the request/response RPC path. Every event therefore allocates a request ID and promise and occupies both the client and worker queues while writes are already active.
This PR sends those notifications as typed port messages instead. It removes
broadcastMaterializedfrom the RPC schema while preserving the existing event payload and cross-tab propagation behavior. Delivery remains best-effort when a port is closing or has failed.Scope
This is a performance and contention reduction. It does not change SQLite writes, materialization semantics, initialization, database drop, or reload handling.
Stack
Depends on #208. After merging this PR with a merge commit, retarget #209 to
main.