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

Re: USE_SHA1DC is broken in pu

From
Linus Torvalds <torvalds@linux-foundation.org>
Date
Mar 23, 2017, 17:16 UTC
Message-ID
<CA+55aFyFS2r6isdQU_i5FUQnrzjvWhZdmEVE=KmBVTrMukBbkw@mail.gmail.com>
In-Reply-To
<alpine.DEB.2.20.1703231724350.3767@virtualbox>

On Thu, Mar 23, 2017 at 9:43 AM, Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:

>
> What I am saying is that this should be a more fine-grained, runtime knob.
No it really shouldn't.
> If I write out an index, I should not suffer the slowdown from detecting
> collisions.
The index case is a complete red herring.

As already noted, the proper fix for the index case is to simply do it asynchronously on read. On write, it's harder to do asynchronously, but for a 300MB index file you're likely going to be doing IO in the middle, so it's probably not even noticeable.

But even *if* you want to worry about the index file, it shouldn't be a runtime knob. The index file is completely different from the other uses of SHA1DC.

But the fact is, if you don't want SHA1DC, and you have crazy special cases, you just continue to build with openssl support instead. Nobody else should ever have to worry about *your* crazy cases.

                Linus
Previous: Johannes SchindelinNext: Jeff King
Message 15 of 18 in “USE_SHA1DC is broken in pu”
  1. Linus TorvaldsMar 16, 2017
  2. Jeff KingMar 16, 2017
  3. Linus TorvaldsMar 16, 2017
  4. Junio C HamanoMar 16, 2017
  5. Linus TorvaldsMar 16, 2017
  6. Linus TorvaldsMar 16, 2017
  7. Junio C HamanoMar 16, 2017
  8. Lars SchneiderMar 17, 2017
  9. Lars SchneiderMar 17, 2017
  10. Johannes SchindelinMar 21, 2017
  11. Junio C HamanoMar 21, 2017
  12. Johannes SchindelinMar 22, 2017
  13. Jonathan NiederMar 22, 2017
  14. Johannes SchindelinMar 23, 2017
  15. Linus TorvaldsMar 23, 2017
  16. Jeff KingMar 23, 2017
  17. Junio C HamanoMar 23, 2017
  18. Jonathan NiederMar 23, 2017

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.