Files
milvus/configs
ab87a3f825 fix: buffer cm.Reader in BM25 streamOneFile to reduce IO syscalls (#48845)
## Summary
- Wraps `cm.Reader` (S3/MinIO HTTP body) with `bufio.NewReader` in
`streamOneFile` before creating the TeeReader
- `DeserializeFromReader` calls `binary.Read` which reads 4/8 bytes per
call; without buffering, each small read hits the remote reader
directly, causing excessive IO operations during preload parsing
- With `bufio.Reader` (default 4KB buffer), small reads are served from
the buffer, reducing remote IO to ~1 per 4KB

## Test plan
- [x] Existing `TestIDFOracle` tests pass
- [x] Verified via profiling that IO syscall count drops significantly
during BM25 preload

issue: #46468

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Signed-off-by: aoiasd <zhicheng.yue@zilliz.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-13 10:37:40 +08:00
..
2022-05-10 20:05:53 +08:00
2024-05-22 13:21:39 +08:00
2021-11-16 15:41:11 +08:00