From: Johannes Sixt Date: Fri, 10 Apr 2026 07:35:34 GMT Subject: Re: Git 2.54.0-rc1, subtests of t5310, t5326, t5327 Message-ID: <1b4c3562-8501-433e-afaf-2cb3a295b4ac@kdbg.org> In-Reply-To: Am 09.04.26 um 10:17 schrieb Patrick Steinhardt: > Yeah, agreed. I think we shouldn't make ourselves a hostage to platforms > that don't have reasonable support for writev(3p), as it does buy us > something on the majority of platforms that actually support it well. > > That of course doesn't mean that we shouldn't support such platforms. My take on this matter is that the use writev in Git's code gives POSIX centered contributors a false sense of security. POSIX's writev offers a number of guarantees that a compatibility implementation cannot provide. If uses of writev proliferate, I forsee the time when someone reports a problem on a compatibility platform, and one of us will point at POSIX and say "but that cannot happen because we have this and that guarantee". What did we gain with writev? There are half that many system calls. So what? Have there been any hard numbers about better performance, for example? Not even the call sites became simpler, see the commit that introduced the only caller: 26986f4cbaf3 ("sideband: use writev(3p) to send pktlines", 2026-03-13). -- Hannes