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

Re: git diff too slow for a file

From
Junio C Hamano <gitster@pobox.com>
Date
Apr 17, 2010, 17:10 UTC
Message-ID
<7vpr1y2eev.fsf@alter.siamese.dyndns.org>
In-Reply-To
<4BC9D928.50909@lsrfire.ath.cx>
René Scharfe <rene.scharfe@lsrfire.ath.cx> writes:
René Scharfe <rene.scharfe@lsrfire.ath.cx> writes:
Show 8 quoted lines
> Am 29.03.2010 03:42, schrieb SungHyun Nam:
>>  ...
>> Well, though the files are ascii file, they includes a random
>> hexa-decimal datas, so that I don't interest the diff result at
>> all.
> ...
> The following patch is not meant for inclusion, but rather to start a
> dicussion.  Is XDF_NEED_MINIMAL a good default to have?

This is a very valid question to ask. The choice of the default was done without any benchmarking nor analysis on performance impact at all.

What we should do next would be to:
 - see how much performance impact we have been getting from more normal
   set of files (say, "git log -p" in the kernel archive) by our use of
   MINIMAL;  I suspect that git.git itself is too small to observe any
   meaningful difference.  We already _know_ that MINIMAL is more
   expensive, so this is not very important, but it would be good to
   know.
 - inspect the difference of the quality of output for not using MINIMAL,
   again for more normal set of files.  We know that the quality does not
   matter for pathological cases like the one in this thread --- the user
   is not even "interested in the diff result at all".
Thanks for starting this.
Previous: René ScharfeNext: René Scharfe
Message 3 of 12 in “git diff too slow for a file”
  1. SungHyun NamMar 29, 2010
  2. René ScharfeApr 17, 2010
  3. Junio C HamanoApr 17, 2010
  4. René ScharfeApr 18, 2010
  5. Junio C HamanoApr 20, 2010
  6. René ScharfeApr 20, 2010
  7. Junio C HamanoApr 21, 2010
  8. René ScharfeMay 2, 2010
  9. Junio C HamanoMay 2, 2010
  10. René ScharfeMay 4, 2010
  11. Junio C HamanoMay 4, 2010
  12. SungHyun NamApr 19, 2010

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.