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

"git submodule foreach" very slow ...

From
RTrupert THURNER <rupert.thurner@gmail.com>
Date
Aug 27, 2011, 19:07 UTC
Message-ID
<CAJs9aZ8Bbaji-Did9gYzUQ85VRkp=ZpRq=Pej6M-9fkKK5BurA@mail.gmail.com>

git usually is lightning fast, it even knows how many processor threads are available and uses them. for a test i converted https://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/pkg into a git repository with one subrepository for every directory. rebasing takes now 3 hours, while git without subrepositories takes 10 minutes.

$ ls -1 | wc
   1162    1162    9527
$ time git submodule foreach git svn rebase
....
real    199m29.626s
user    60m49.631s
sys     70m51.888s

contrary, if one creates one git repository for all these little directories, rebasing is twenty times faster: $ time git svn rebase ... real 10m1.032s user 5m33.632s sys 2m53.955s

rupert
Message 1 of 1 in “"git submodule foreach" very slow ...”
  1. rupert THURNERAug 27, 2011

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.