Repository navigation
Commit 6ca128e
committed
perf(mobile): convert only the changed block of a streaming assistant message
A streamed reply re-ran the whole Markdown-to-native conversion on every update. While a message is streaming, split its text at blank lines that close every open block, keep the previous update's converted blocks, and convert only the blocks that changed. Finished text, every other consumer and text with syntax that ties blocks together keep the whole-text conversion.1 parent 9e85538 commit 6ca128e
6 files changed
Lines changed: 597 additions & 33 deletions
File tree
- apps/mobile/src
- features/threads
- lib
- native
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1191 | 1191 | | |
1192 | 1192 | | |
1193 | 1193 | | |
| 1194 | + | |
1194 | 1195 | | |
1195 | 1196 | | |
1196 | 1197 | | |
| |||
1208 | 1209 | | |
1209 | 1210 | | |
1210 | 1211 | | |
| 1212 | + | |
1211 | 1213 | | |
1212 | 1214 | | |
1213 | 1215 | | |
| |||
1220 | 1222 | | |
1221 | 1223 | | |
1222 | 1224 | | |
| 1225 | + | |
1223 | 1226 | | |
1224 | 1227 | | |
1225 | 1228 | | |
| |||
1262 | 1265 | | |
1263 | 1266 | | |
1264 | 1267 | | |
| 1268 | + | |
1265 | 1269 | | |
1266 | 1270 | | |
1267 | 1271 | | |
| |||
2266 | 2270 | | |
2267 | 2271 | | |
2268 | 2272 | | |
| 2273 | + | |
2269 | 2274 | | |
2270 | 2275 | | |
2271 | 2276 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
287 | 287 | | |
288 | 288 | | |
289 | 289 | | |
290 | | - | |
291 | | - | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
292 | 307 | | |
293 | 308 | | |
294 | 309 | | |
295 | 310 | | |
296 | 311 | | |
297 | 312 | | |
| 313 | + | |
298 | 314 | | |
299 | 315 | | |
300 | | - | |
301 | | - | |
302 | | - | |
303 | | - | |
304 | | - | |
305 | | - | |
306 | | - | |
307 | | - | |
308 | | - | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
309 | 319 | | |
310 | 320 | | |
311 | 321 | | |
| |||
441 | 451 | | |
442 | 452 | | |
443 | 453 | | |
444 | | - | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
445 | 464 | | |
446 | 465 | | |
447 | 466 | | |
| |||
0 commit comments