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

Re: [RFC PATCH 0/2] Add support for multi threaded checkout

From
JPJames Pickens <jepicken@gmail.com>
Date
Dec 18, 2008, 21:42 UTC
Message-ID
<885649360812181342u2978038fj3a11670acd9fd873@mail.gmail.com>
In-Reply-To
<494ABDC9.9060001@morey-chaisemartin.com>

On Thu, Dec 18, 2008 at 2:16 PM, Nicolas Morey-Chaisemartin <devel@morey-chaisemartin.com> wrote:

Show 8 quoted lines
> I guess you could do something like :
>
> #define checkout_lock()         core_threaded_checkout ?pthread_mutex_lock(&checkout_mutex) : (void) 0
> #define checkout_unlock()               core_threaded_checkout ?pthread_mutex_unlock(&checkout_mutex) : (void) 0
>
> It should be faster when you don't actually use threaded checkouts, as you won't unnecessarily lock/unlock your mutex.
>
> Have you looked at the perf from local to local? I'm just curious.

I had looked at it before but didn't record any numbers. I just took the following timings (2 runs each):

master 13.78 12.79 threads enabled 16.84 20.45 threads disabled 14.07 13.27

James
Previous: Nicolas Morey-ChaisemartinNext: James Pickens
Message 10 of 11 in “Add support for multi threaded checkout”
  1. 0/2 Add support for multi threaded checkoutPickens, James E, Dec 18, 2008
  2. 1/2 Add support for multi threaded checkoutJames Pickens, Dec 18, 2008
  3. 2/2 Add core.threadedcheckout config optionJames Pickens, Dec 18, 2008
  4. Linus TorvaldsDec 18, 2008
  5. James PickensDec 18, 2008
  6. Linus TorvaldsDec 19, 2008
  7. Nicolas PitreDec 18, 2008
  8. James PickensDec 18, 2008
  9. Nicolas Morey-ChaisemartinDec 18, 2008
  10. James PickensDec 18, 2008
  11. James PickensDec 19, 2008

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.