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

Re: question about: Facebook makes Mercurial faster than Git

From
Karsten Blees <karsten.blees@gmail.com>
Date
Mar 10, 2014, 14:18 UTC
Message-ID
<531DC9B6.6030605@gmail.com>
In-Reply-To
<531DA519.8090509@gmx.net>
Am 10.03.2014 12:42, schrieb Dennis Luehring:
Show 8 quoted lines
> Am 10.03.2014 12:28, schrieb demerphq:
>> I had the impression, and I would not be surprised if they had the
>> impression that the git development community is relatively
>> unconcerned about performance issues on larger repositories.
> 
> so the question is if the git community is interested in beeing competive in such
> large scale scenarios - something what mercurial seems to be now out of the box
> 
The hgwatchman site claims (https://bitbucket.org/facebook/hgwatchman)
"On a real-world repository with over 200,000 files, hg status normally takes over 3 seconds. With hgwatchman it takes under 0.6 seconds."
There have been a few performance improvements in git status to support such large repositories. I just re-checked git status performance with the WebKit repo (~200k files):

Linux (with core.preloadIndex) git status -uall: 0.620s git status -uno : 0.255s

Windows (with core.preloadIndex and core.fscache) git status -uall: 1.006s git status -uno : 0.695s

Of course, for more reliable benchmark data, you'd have to compare the same repo on the same platform. But on first glance, it seems that mercurial with hgwatchman extension may be as fast as git is out of the box, not the other way around.
This comes at the cost of running a background daemon, which may slow down the entire system. E.g. if the daemon activates whenever the compiler creates a .o file, it will probably slow down build performance.
Note that hgwatchman doesn't support Windows, so git is probably much faster there.
Previous: Michael HaggertyNext: Duy Nguyen
Message 11 of 12 in “question about: Facebook makes Mercurial faster than Git”
  1. Dennis LuehringMar 10, 2014
  2. David LangMar 10, 2014
  3. Ondřej BílkaMar 10, 2014
  4. David LangMar 10, 2014
  5. Martin LanghoffMar 10, 2014
  6. Ondřej BílkaMar 11, 2014
  7. demerphqMar 10, 2014
  8. Dennis LuehringMar 10, 2014
  9. Johan HerlandMar 10, 2014
  10. Michael HaggertyMar 10, 2014
  11. Karsten BleesMar 10, 2014
  12. Duy NguyenMar 14, 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.