open-code-review/internal/tool
kite f24334deb2 perf(tool): stream file reads line-by-line to avoid full-file memory allocation
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.
2026-06-06 20:59:05 +08:00
..
code_comment.go fix(tool): propagate context.Context to all tool providers to enable subprocess cancellation 2026-06-06 19:26:34 +08:00
code_search.go feat(tool): add global git subprocess concurrency limiter and propagate context.Context to diff layer 2026-06-06 20:20:34 +08:00
code_search_test.go fix(tool): propagate context.Context to all tool providers to enable subprocess cancellation 2026-06-06 19:26:34 +08:00
comment_collector.go feat: init 2026-05-20 22:03:52 +08:00
definitions.go fix(tool): make Registry and DiffMap concurrency-safe via freeze semantics 2026-06-06 19:41:11 +08:00
file_find.go feat(tool): add global git subprocess concurrency limiter and propagate context.Context to diff layer 2026-06-06 20:20:34 +08:00
file_read.go perf(tool): stream file reads line-by-line to avoid full-file memory allocation 2026-06-06 20:59:05 +08:00
file_read_diff.go fix(tool): make Registry and DiffMap concurrency-safe via freeze semantics 2026-06-06 19:41:11 +08:00
file_read_test.go perf(tool): stream file reads line-by-line to avoid full-file memory allocation 2026-06-06 20:59:05 +08:00
filereader.go perf(tool): stream file reads line-by-line to avoid full-file memory allocation 2026-06-06 20:59:05 +08:00
response_message.go feat: init 2026-05-20 22:03:52 +08:00
stub.go fix(tool): propagate context.Context to all tool providers to enable subprocess cancellation 2026-06-06 19:26:34 +08:00