Large files on an aindrive drive open several times faster #3

Merged
RaymondCho merged 1 commits from reuse-last-read into main 2026-10-13 21:55:46 +00:00

1 Commits

Author SHA1 Message Date
RaymondCho 8d206bac1b Large files on an aindrive drive open several times faster
CI / checks (pull_request) Successful in 37s
The host reads a file one 1 MiB slice per call, and every slice fetched
the whole file again, so an 8 MiB file crossed the network eight times.
The last file read is now kept for the slices that follow: each slice
still stats the file first and reuses the reply only at the same
revision, so a file changed in between is fetched afresh.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 06:54:28 +09:00