Commit 0b25438
committed
Redesign ingestion using a dedicated ingestion worker
Addresses #4298 by moving CPU-intensive Arrow message processing off the
UI thread.
Key changes:
1. Ingestion Worker (crates/viewer/re_viewer/src/ingestion_worker.rs):
- Dedicated background thread for processing Arrow messages into chunks
- Bounded channel (capacity: 2000) provides natural backpressure
2. Viewer Integration (crates/viewer/re_viewer/src/app.rs):
- Arrow messages submitted to worker queue instead of blocking UI thread
- Poll worker output during update() and add chunks to EntityDb1 parent 0a0c451 commit 0b25438
File tree
8 files changed
+652
-143
lines changed- crates
- store
- re_data_loader
- benches
- src
- re_entity_db/src
- viewer/re_viewer
- src
8 files changed
+652
-143
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8622 | 8622 | | |
8623 | 8623 | | |
8624 | 8624 | | |
| 8625 | + | |
8625 | 8626 | | |
8626 | 8627 | | |
8627 | 8628 | | |
8628 | 8629 | | |
8629 | 8630 | | |
8630 | 8631 | | |
8631 | 8632 | | |
| 8633 | + | |
8632 | 8634 | | |
8633 | 8635 | | |
8634 | 8636 | | |
| |||
10222 | 10224 | | |
10223 | 10225 | | |
10224 | 10226 | | |
| 10227 | + | |
10225 | 10228 | | |
10226 | 10229 | | |
10227 | 10230 | | |
| |||
Lines changed: 3 additions & 75 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
| 24 | + | |
29 | 25 | | |
30 | 26 | | |
31 | 27 | | |
| |||
70 | 66 | | |
71 | 67 | | |
72 | 68 | | |
73 | | - | |
| 69 | + | |
74 | 70 | | |
75 | 71 | | |
76 | 72 | | |
| |||
101 | 97 | | |
102 | 98 | | |
103 | 99 | | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
0 commit comments