Commit d9904d3
Make client stream writing concurrent with component streaming
Previously, chunks were written to the response stream only after all
component streaming tasks completed. Now the writer task starts
immediately and writes chunks concurrently as they arrive in the queue.
This improves streaming performance by eliminating the delay between
chunk production and delivery to the client.
Changes:
- Start writer task before waiting for barrier
- Writer dequeues and writes chunks concurrently with producers
- Added debug logging for development troubleshooting
- Disabled prerender_caching in dummy config for testing
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent c4d570f commit d9904d3
File tree
1 file changed
+11
-8
lines changed- react_on_rails_pro/lib/react_on_rails_pro/concerns
1 file changed
+11
-8
lines changedLines changed: 11 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
62 | 69 | | |
63 | 70 | | |
64 | 71 | | |
65 | 72 | | |
66 | 73 | | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
| 74 | + | |
72 | 75 | | |
73 | 76 | | |
74 | 77 | | |
0 commit comments