-
Notifications
You must be signed in to change notification settings - Fork 135
fix: parallelize publish signal awaits #3523
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
base: 11-21-chore_fix_diff_between_ee_fix_plural_api_query_params
Are you sure you want to change the base?
fix: parallelize publish signal awaits #3523
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
3 Skipped Deployments
|
PR Review: fix: parallelize publish signal awaitsSummaryThis PR optimizes the Code Quality ✅Good changes:
Correctness ✅The change is semantically equivalent to the original code:
Performance ✅This is a valid performance optimization:
Security ✅No security concerns - the change only affects the ordering/parallelization of existing read operations within the same transaction. Potential Consideration
|
More templates
@rivetkit/cloudflare-workers
@rivetkit/db
@rivetkit/framework-base
@rivetkit/next-js
@rivetkit/react
rivetkit
@rivetkit/sql-loader
@rivetkit/engine-runner
@rivetkit/engine-runner-protocol
commit: |
cda5885 to
d6cccca
Compare
Code Review: fix: parallelize publish signal awaitsSummaryThis PR optimizes ✅ What looks good
🔍 Review notes
💭 Minor suggestionConsider adding a brief comment above the // Fetch workflow name and wake signal status in parallel since they're independent reads
let (workflow_name_entry, wake_signal_entry) = tokio::try_join!(
tx.get(&self.subspace.pack(&workflow_name_key), Serializable),
tx.get(&self.subspace.pack(&wake_signal_key), Serializable),
)?;This is optional since the intent is fairly clear from context. ✅ VerdictLGTM - This is a clean optimization that improves performance without changing behavior. The parallel reads should reduce latency for the |
PR Review: fix: parallelize publish signal awaitsSummaryThis PR parallelizes two sequential database reads in Code Quality ✅
Correctness ✅The change is correct:
Performance ✅This is a net positive performance improvement:
For database operations, this can provide meaningful latency reduction, especially under load. Potential Considerations
Test CoverageNo new tests added, but this is a pure refactoring that doesn't change behavior. Existing tests should cover this code path. Verdict: Approve ✅This is a clean, focused optimization that correctly parallelizes independent async operations. The code is readable and maintains the same behavior while reducing latency. |

No description provided.