Use bufio for all disk writes?
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
In a few places we use io.Copy into an os.File. It seems that os.File.Write maps directly to write(1) syscalls. Maybe we should make a rule of always wrapping os.File with a bufio.Writer.
This may be particularly worthwhile when writing files to NFS as we do in the multipart upload rewriter (think of CI artifact uploads). We would have to do some benchmarks first. I think it is a good goal to minimize write(2) calls.
Edited by 🤖 GitLab Bot 🤖