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

Re: What's cooking in git.git (Apr 2014, #03; Fri, 11)

From
Ramsay Jones <ramsay@ramsay1.demon.co.uk>
Date
Apr 16, 2014, 11:31 UTC
Message-ID
<534E6A2B.5060903@ramsay1.demon.co.uk>
In-Reply-To
<CACsJy8C_WU_-73+VF0KV1X1BLDSWH_C35jPjMcrjR2OW3s9z-Q@mail.gmail.com>
On 16/04/14 00:18, Duy Nguyen wrote:
Show 41 quoted lines
> On Tue, Apr 15, 2014 at 11:45 PM, Junio C Hamano <gitster@pobox.com> wrote:
>> Ramsay Jones <ramsay@ramsay1.demon.co.uk> writes:
>>
>>> On 11/04/14 23:22, Junio C Hamano wrote:
>>> [...]
>>>> [New Topics]
>>>>
>>>> * nd/index-pack-one-fd-per-thread (2014-04-09) 1 commit
>>>>  - index-pack: work around thread-unsafe pread()
>>>>
>>>>  Enable threaded index-pack on platforms without thread-unsafe
>>>>  pread() emulation.
>>>>
>>>>  Will merge to 'next' and keep it there for the remainder of the cycle.
>>>
>>> The commit message for commit 512ebe5d ("index-pack: work around
>>> thread-unsafe pread()", 25-03-2014) is a little misleading.
>>
>> OK.  Can we have a concrete alternative?
>>
>>     Multi-threaing of index-pack was disabled with c0f8654
>>     (index-pack: Disable threading on cygwin - 2012-06-26), because
>>     pread() implementations for Cygwin and MSYS were not thread
>>     safe.  Recent Cygwin does offer usable pread() and we enabled
>>     multi-threading with 103d530f (Cygwin 1.7 has thread-safe pread,
>>     2013-07-19).
>>
>>     Work around this problem on platforms with a thread-unsafe
>>     pread() emulation by opening one file handle per thread; it
>>     would prevent parallel pread() on different file handles from
>>     stepping on each other.
>>
>>     Also remove NO_THREAD_SAFE_PREAD that was introduced in c0f8654
>>     because it's no longer used anywhere.
>>
>>     This workaround is unconditional, even for platforms with
>>     thread-safe pread() because the overhead is small (a couple file
>>     handles more) and not worth fragmenting the code.
>>
> 
> OK to me.
Yep, this looks good to me too.
Thanks!

ATB, Ramsay Jones

Previous: Duy NguyenNext: Michael Haggerty
Message 7 of 10 in “What's cooking in git.git (Apr 2014, #03; Fri, 11)”
  1. Junio C HamanoApr 11, 2014
  2. Felipe ContrerasApr 11, 2014
  3. Junio C HamanoApr 12, 2014
  4. Ramsay JonesApr 12, 2014
  5. Junio C HamanoApr 15, 2014
  6. Duy NguyenApr 15, 2014
  7. Ramsay JonesApr 16, 2014
  8. Michael HaggertyApr 13, 2014
  9. W. Trevor KingApr 17, 2014
  10. Junio C HamanoApr 17, 2014

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.