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

Re: [ANNOUNCE] CGit v0.1-pre

From
Linus Torvalds <torvalds@osdl.org>
Date
Dec 11, 2006, 17:33 UTC
Message-ID
<Pine.LNX.4.64.0612110929510.12500@woody.osdl.org>
In-Reply-To
<Pine.LNX.4.64.0612110859200.12500@woody.osdl.org>
On Mon, 11 Dec 2006, Linus Torvalds wrote:
> 
> The point is, if you have races, you will hit them _occasionally_. It may 
> not be a performance problem in real life, BUT:
Side note: another problem with races is that
 - exactly because they are rare, any potential problems they cause are 
   really hard to debug - you may have a hard time reproducing things.
 - some loads may be able to trigger them thanks to very unlucky timing, 
   so even if the problem is "just a theoretical performance issue", 
   sometimes that theoretical performance problem that only happens once 
   in a blue moon ends up happening a _lot_ for a particular user.

I'm probably biased, simply because I've done system programming for so long (and race conditions etc are one of the most common source of subtle bugs), but I've long since come to the very strong opinion that locking is simply too important to not do right.

Even if you can argue that "it doesn't matter" (and you may even be right), I personally tend to just consider dodgy locking to be a serious bug _whether_ it really matters or not.

Just a hangup of mine.
Previous: Linus TorvaldsNext: Lars Hjemli
Message 8 of 12 in “[ANNOUNCE] CGit v0.1-pre”
  1. Lars HjemliDec 10, 2006
  2. Jakub NarebskiDec 11, 2006
  3. MichaelDec 11, 2006
  4. Linus TorvaldsDec 11, 2006
  5. Lars HjemliDec 11, 2006
  6. Lars HjemliDec 11, 2006
  7. Linus TorvaldsDec 11, 2006
  8. Linus TorvaldsDec 11, 2006
  9. Lars HjemliDec 11, 2006
  10. Linus TorvaldsDec 11, 2006
  11. Lars HjemliDec 11, 2006
  12. Jakub NarebskiDec 11, 2006

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.