Commit 388607c
authored
perf(cubesql): Avoid cloning row payload in convert_transport_response (cube-js#10772)
Destructure V1LoadResult to move `data` and `last_refresh_time` out of the owned value instead of cloning. Eliminates a full copy of the row Vec on every Cube load result, reducing peak memory and allocator churn.1 parent df30aad commit 388607c
1 file changed
Lines changed: 10 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
1194 | 1194 | | |
1195 | 1195 | | |
1196 | 1196 | | |
1197 | | - | |
1198 | | - | |
1199 | | - | |
| 1197 | + | |
| 1198 | + | |
| 1199 | + | |
| 1200 | + | |
| 1201 | + | |
| 1202 | + | |
| 1203 | + | |
| 1204 | + | |
| 1205 | + | |
1200 | 1206 | | |
1201 | 1207 | | |
1202 | 1208 | | |
| |||
0 commit comments