mirror of
https://github.com/alibaba/open-code-review.git
synced 2026-07-10 01:39:12 +00:00
Replace os.ReadFile + strings.Split with bufio.Reader streaming in FileReadProvider, so only the requested window (up to 500 lines) is kept in memory instead of the entire file. Adds Runner.Stream for semaphore- aware stdout piping, FileReader.ReadLines for line-windowed reading, and validates invalid line ranges. Reduces per-goroutine memory from ~8MB to ~44KB for large files under concurrent workloads. |
||
|---|---|---|
| .. | ||
| code_comment.go | ||
| code_search.go | ||
| code_search_test.go | ||
| comment_collector.go | ||
| definitions.go | ||
| file_find.go | ||
| file_read.go | ||
| file_read_diff.go | ||
| file_read_test.go | ||
| filereader.go | ||
| response_message.go | ||
| stub.go | ||