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

Re: gitweb - option to disable rename detection

From
Linus Torvalds <torvalds@osdl.org>
Date
Aug 15, 2005, 18:53 UTC
Message-ID
<Pine.LNX.4.58.0508151140050.3553@g5.osdl.org>
In-Reply-To
<87d5ofoxvt.wl@mail2.atmark-techno.com>
On Tue, 16 Aug 2005, Yasushi SHOJI wrote:
Show 7 quoted lines
> 
> It seems to me that git-diff-tree needs huge memory if you try to diff
> on big change with rename detection enabled.
> 
> This isn't problem for sane project but if you create a repo with only
> major releases imports, git-diff-tree run by git_commit() eats system
> memory and die ;P
Instead of disabling it entirely, how about just having some limit on it?

The basic rename detection works very well for "normal" changes as you point out, but it very fundamentally is O(n^2) in number of files created and deleted, so we could instead just limit it and say "if we have tons of new/deleted files, disable it in the interest of CPU/memory usage".

			Linus
Previous: Yasushi SHOJINext: Yasushi SHOJI
Message 2 of 6 in “gitweb - option to disable rename detection”
  1. Yasushi SHOJIAug 15, 2005
  2. Linus TorvaldsAug 15, 2005
  3. Yasushi SHOJIAug 15, 2005
  4. Linus TorvaldsAug 15, 2005
  5. Junio C HamanoAug 16, 2005
  6. Yasushi SHOJIAug 16, 2005

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.