mirror of
https://github.com/alibaba/open-code-review.git
synced 2026-07-09 17:28:58 +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. |
||
|---|---|---|
| .. | ||
| runner.go | ||