git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Git 2.54.0-rc1, subtests of t5310, t5326, t5327

From
Johannes Sixt <j6t@kdbg.org>
Date
Apr 10, 2026, 07:35 UTC
Message-ID
<1b4c3562-8501-433e-afaf-2cb3a295b4ac@kdbg.org>
In-Reply-To
<addgkjiB80pgKw69@pks.im>
Am 09.04.26 um 10:17 schrieb Patrick Steinhardt:
Show 5 quoted lines
> 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
Previous: Jeff KingNext: rsbecker@nexbridge.com
Message 26 of 29 in “Git 2.54.0-rc1, subtests of t5310, t5326, t5327”
  1. rsbecker@nexbridge.comApr 7, 2026
  2. Jeff KingApr 8, 2026
  3. rsbecker@nexbridge.comApr 8, 2026
  4. rsbecker@nexbridge.comApr 8, 2026
  5. Jeff KingApr 8, 2026
  6. Junio C HamanoApr 8, 2026
  7. rsbecker@nexbridge.comApr 8, 2026
  8. Junio C HamanoApr 8, 2026
  9. rsbecker@nexbridge.comApr 8, 2026
  10. Junio C HamanoApr 8, 2026
  11. rsbecker@nexbridge.comApr 8, 2026
  12. Junio C HamanoApr 8, 2026
  13. Junio C HamanoApr 8, 2026
  14. rsbecker@nexbridge.comApr 8, 2026
  15. Jeff KingApr 8, 2026
  16. brian m. carlsonApr 9, 2026
  17. Patrick SteinhardtApr 9, 2026
  18. Phillip WoodApr 9, 2026
  19. Patrick SteinhardtApr 9, 2026
  20. rsbecker@nexbridge.comApr 9, 2026
  21. Jeff KingApr 9, 2026
  22. rsbecker@nexbridge.comApr 9, 2026
  23. Jeff KingApr 9, 2026
  24. Patrick SteinhardtApr 10, 2026
  25. Jeff KingApr 9, 2026
  26. Johannes SixtApr 10, 2026
  27. rsbecker@nexbridge.comApr 8, 2026
  28. Jeff KingApr 8, 2026
  29. Jeff KingApr 8, 2026

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.