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

Re: git and larger trees, not so fast?

From
Sean <seanlkml@sympatico.ca>
Date
Aug 9, 2007, 20:52 UTC
Message-ID
<20070809165218.9b76ebf7.seanlkml@sympatico.ca>
In-Reply-To
<7v7io4xwvp.fsf@assigned-by-dhcp.cox.net>

On Thu, 09 Aug 2007 13:42:50 -0700 Junio C Hamano <gitster@pobox.com> wrote:

Show 7 quoted lines
> I do not know if this "fixes" the performance problem or not (I
> do not have that much time during the day), so I would not call
> this a "fix" yet, but at least the _change_ looks trivially
> correct, and passes all the existing tests.
> 
> Interested parties may want to try it and see if it shifts the
> bottleneck.
Junio,

This makes things _much_ better, however the final commit in the test script still shows a lot of user time:

## time git init real 0m0.005s user 0m0.001s sys 0m0.004s

## time git add . real 0m3.501s user 0m1.268s sys 0m2.159s

## time git commit -q -m 'buurrrrn' -a real 0m2.299s user 0m1.065s sys 0m1.317s

## time git status real 0m1.107s user 0m0.548s sys 0m0.557s

## time git status real 0m1.122s user 0m0.545s sys 0m0.557s

## time git status real 0m1.142s user 0m0.545s sys 0m0.576s

## time git commit -q -m 'hurry' 50/500 real 0m16.944s user 0m15.466s sys 0m1.133s

Cheers, Sean

Previous: Junio C HamanoNext: Junio C Hamano
Message 8 of 37 in “git and larger trees, not so fast?”
  1. moeAug 9, 2007
  2. Linus TorvaldsAug 9, 2007
  3. Linus TorvaldsAug 9, 2007
  4. Junio C HamanoAug 9, 2007
  5. Linus TorvaldsAug 9, 2007
  6. Junio C HamanoAug 9, 2007
  7. Junio C HamanoAug 9, 2007
  8. SeanAug 9, 2007
  9. Junio C HamanoAug 9, 2007
  10. Linus TorvaldsAug 9, 2007
  11. Linus TorvaldsAug 9, 2007
  12. Junio C HamanoAug 9, 2007
  13. Junio C HamanoAug 9, 2007
  14. Junio C HamanoAug 10, 2007
  15. Linus TorvaldsAug 10, 2007
  16. Junio C HamanoAug 10, 2007
  17. Linus TorvaldsAug 10, 2007
  18. Junio C HamanoAug 10, 2007
  19. Junio C HamanoAug 10, 2007
  20. Linus TorvaldsAug 10, 2007
  21. Linus TorvaldsAug 10, 2007
  22. Fix "git commit directory/" performance anomalyLinus Torvalds, Aug 10, 2007
  23. Linus TorvaldsAug 10, 2007
  24. Junio C HamanoAug 10, 2007
  25. Linus TorvaldsAug 10, 2007
  26. Daniel BarkalowAug 10, 2007
  27. Linus TorvaldsAug 9, 2007
  28. David KastrupAug 9, 2007
  29. Linus TorvaldsAug 10, 2007
  30. Linus TorvaldsAug 11, 2007
  31. Fernando J. PeredaAug 11, 2007
  32. Linus TorvaldsAug 11, 2007
  33. Fernando J. PeredaAug 11, 2007
  34. Linus TorvaldsAug 11, 2007
  35. David KastrupAug 11, 2007
  36. moeAug 11, 2007
  37. moeAug 23, 2007

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.