Commit bdef74c
committed
Stream results progressively [FCOM-8]
This change brings back streaming of results, which I think was broken
in #639 .
Unsurprisingly, given the complexity/overhead added to the
implementation, the fix herein does hurt performance somewhat, but not
terribly. I tested with the following queries in `david_runger` and got:
1. **with this change:** `time /home/david/code/fcom/exe/fcom
javascript` => 15.1s, 14.6s
2. **with latest release:** `time fcom javascript` => 12.9s, 12.7s
I think that this is well worthwhile, in order to be able to start
seeing streaming results as soon as they begin to become available
(which often allows for Ctrl-C to interrupt the command before it
finishes, anyway, resulting in a net time savings, even if it is slower
if/when run all the way to completion).
Private reference link:
https://chat.deepseek.com/a/chat/s/6eb15fc5-626f-48b9-b329-a0fd6933d96a1 parent b798b80 commit bdef74c
2 files changed
+28
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
3 | 5 | | |
4 | 6 | | |
5 | 7 | | |
| |||
63 | 65 | | |
64 | 66 | | |
65 | 67 | | |
66 | | - | |
67 | 68 | | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
74 | 79 | | |
75 | | - | |
| 80 | + | |
76 | 81 | | |
77 | | - | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
78 | 96 | | |
79 | 97 | | |
80 | 98 | | |
| |||
0 commit comments