Commit 73b1fef
committed
Stream large files instead of loading into memory
- addresses latest review feedback for PR #119
- search-ql-code: check file size via lstatSync before reading; stream
large files (>5 MB) line-by-line instead of skipping them
- evaluator-log-parser: replace readFileSync with streaming async
generator (createReadStream + readline) for brace-depth JSON parsing;
parseEvaluatorLog now reads the file once instead of twice
- profile-codeql-query: convert local parser to streaming with Map-based
lookups instead of O(n) events.find()
- database-copier: use lstat in removeLockFiles to skip symlinks; throw
on fatal mkdir failures for proper fallback in EnvironmentBuilder
- Validate contextLines/maxResults with schema bounds and clamping
- Add environment-builder test for syncAll-throws fallback1 parent 5fb6146 commit 73b1fef
10 files changed
Lines changed: 745 additions & 397 deletions
File tree
- extensions/vscode
- src/bridge
- test/bridge
- server
- dist
- src
- lib
- tools/codeql
- test/src
- lib
- tools/codeql
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
140 | | - | |
141 | | - | |
| 140 | + | |
| 141 | + | |
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
154 | | - | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
155 | 159 | | |
156 | 160 | | |
157 | 161 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
206 | 206 | | |
207 | 207 | | |
208 | 208 | | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
209 | 218 | | |
210 | 219 | | |
211 | 220 | | |
| |||
0 commit comments