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

Re: question about: Facebook makes Mercurial faster than Git

From
DLDavid Lang <david@lang.hm>
Date
Mar 10, 2014, 10:13 UTC
Message-ID
<alpine.DEB.2.02.1403100310080.25193@nftneq.ynat.uz>
In-Reply-To
<531D8ED9.7040305@gmx.net>
On Mon, 10 Mar 2014, Dennis Luehring wrote:
Show 9 quoted lines
> according to these blog posts
>
> http://www.infoq.com/news/2014/01/facebook-scaling-hg
> https://code.facebook.com/posts/218678814984400/scaling-mercurial-at-facebook/
>
> mercurial "can" be faster then git
>
> but i don't found any reply from the git community if it is a real problem
> or if there a ongoing (maybe git 2.0) changes to compete better in this case

As I understand this, the biggest part of what happened is that Facebook made a tweak to mercurial so that when it needs to know what files have changed in their massive tree, their version asks their special storage array, while git would have to look at it through the filesystem interface (by doing stat calls on the directories and files to see if anything has changed)

In other words, unless you have a very high end storage system that can keep track of such things for you, the Facebook 'fix' won't help you. And even if it does have such a capability, unless you use the same storage system that Facebook uses, you would have to port it to your class of device.

Now, in addition to this, they did some other tweaks and changes, but compared to this status change, everything else is minor.

David Lang
Previous: Dennis LuehringNext: Ondřej Bílka
Message 2 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.