perf(start): compact deferred hydration private state - #7980
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe changes update hydration prefetch cleanup handling, refactor visible observer registry entries into tuples, rename Solid hydration controller fields, and add tests for synchronous completion, races, aborts, observer sharing, and cleanup. ChangesHydration prefetch maintenance
Estimated code review effort: 3 (Moderate) | ~20 minutes 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
View your CI Pipeline Execution ↗ for commit 9c44de1
☁️ Nx Cloud last updated this comment at |
🚀 Changeset Version Preview2 package(s) bumped directly, 12 bumped as dependents. 🟩 Patch bumps
|
Bundle Size Benchmarks
The following scenarios have bundle-size changes compared with the baseline:
Current gzip tracks all emitted client JS chunks. Initial gzip tracks only the entry/import graph. Trend sparkline is historical current gzip ending with this PR measurement; lower is better. |
Merging this PR will regress 5 benchmarks
|
| Mode | Benchmark | BASE |
HEAD |
Efficiency | |
|---|---|---|---|---|---|
| ❌ | Memory | mem server error-paths not-found (solid) |
416.9 KB | 746.7 KB | -44.17% |
| ❌ | Memory | mem server serialization-payload (react) |
3.3 MB | 3.6 MB | -8.16% |
| ❌ | Memory | mem server error-paths redirect (solid) |
273.1 KB | 288.9 KB | -5.48% |
| ❌ | Memory | mem server server-fn-churn (react) |
265 KB | 276.1 KB | -4.02% |
| ❌ | Memory | mem server error-paths unmatched (react) |
263.2 KB | 272.2 KB | -3.3% |
| ⚡ | Memory | mem server request-churn (react) |
940 KB | 498.4 KB | +88.62% |
| ⚡ | Memory | mem server error-paths redirect (vue) |
358.2 KB | 293 KB | +22.24% |
| ⚡ | Memory | mem client unique-location-churn (react) |
762.5 KB | 665 KB | +14.66% |
| ⚡ | Memory | mem server server-fn-churn (vue) |
274.7 KB | 263.1 KB | +4.4% |
Tip
Investigate this regression by commenting @codspeedbot fix this regression on this PR, or directly use the CodSpeed MCP with your agent.
Comparing codex/solid-hydration-private-state (9c44de1) with main (abf9b81)
Footnotes
-
6 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩
Summary
Public APIs and declaration-facing types are unchanged. The controller keys are Solid-only; the representation changes in Start client core retain the same React and Solid behavior.
Bundle impact
solid-start.deferred-hydrationThe other 16 bundle scenarios are byte-identical. Each production hunk independently improves raw and gzip size; the composed result was remeasured in the full matrix.
Validation
Full attribution and validation details are in
RESULT-optimization-solid-hydration-private-state.md.Summary by CodeRabbit