Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit » Commit takes too long time
Commit takes too long time [message #667791] Mon, 02 May 2011 09:04 Go to next message
sylvain.pras is currently offline sylvain.prasFriend
Messages: 9
Registered: April 2011
Junior Member
I have a project with about 20000 files.

When i do a commit, i stay stuck on the "calulating changes in selected repositories" window fore more than 5 minutes before having the comit panel where i can check the file i want in my commit.

Even if i select the directory where my modified files are before Commit, Egit scan the whole 20000 files ...

I try to make a "assume unmodifed" on some big directories where files are never modified, but it dosen't seems to speed up the commit ...

do i forget some thing ? have anyone an idea to speed up my commits ?

thank's
Re: Commit takes too long time [message #667838 is a reply to message #667791] Mon, 02 May 2011 12:23 Go to previous messageGo to next message
Matthias Sohn is currently offline Matthias SohnFriend
Messages: 612
Registered: July 2009
Senior Member
- Which EGit version are you using on which platform ?
- I tried on Mac OSX on 2.5 GHz Intel Core i5 using EGit 0.12 with linux kernel repo (>30k files) and EGit takes 2-3 sec to bring up the commit dialog, so something must be different in your case
- is this a public repo ?
- does the repo contain a lot of large files ?
Re: Commit takes too long time [message #667988 is a reply to message #667791] Tue, 03 May 2011 08:59 Go to previous messageGo to next message
sylvain.pras is currently offline sylvain.prasFriend
Messages: 9
Registered: April 2011
Junior Member
Egit 0.11.3
on windows 7 (not my choice Sad ) with intel core i7
i commit on my local repo
the repo contains 20000 small files
Re: Commit takes too long time [message #670821 is a reply to message #667791] Sun, 15 May 2011 18:31 Go to previous messageGo to next message
Robin Rosenberg is currently offline Robin RosenbergFriend
Messages: 332
Registered: July 2009
Senior Member
On 2011-05-02 11.04, Sylvain PRAS wrote:
> I have a project with about 20000 files.
>
> When i do a commit, i stay stuck on the "calulating changes in selected
> repositories" window fore more than 5 minutes before having the comit
> panel where i can check the file i want in my commit.
> Even if i select the directory where my modified files are before
> Commit, Egit scan the whole 20000 files ...
> I try to make a "assume unmodifed" on some big directories where files
> are never modified, but it dosen't seems to speed up the commit ...
> do i forget some thing ? have anyone an idea to speed up my commits ?
>
> thank's

Such a slow commit is a bug. It will always check all your files, but
it shouldn't take more than a few seconds unless you actually changed
a very large number of files.

-- robin
Re: Commit takes too long time [message #676010 is a reply to message #667988] Thu, 02 June 2011 11:27 Go to previous messageGo to next message
Bernard Leach is currently offline Bernard LeachFriend
Messages: 8
Registered: July 2009
Junior Member
Sylvain PRAS wrote on Tue, 03 May 2011 04:59
Egit 0.11.3
on windows 7 (not my choice Sad ) with intel core i7
i commit on my local repo
the repo contains 20000 small files


0.11 was very slow. Try a recent build and you should find it much faster.
Re: Commit takes too long time [message #684480 is a reply to message #676010] Wed, 15 June 2011 16:24 Go to previous messageGo to next message
sylvain.pras is currently offline sylvain.prasFriend
Messages: 9
Registered: April 2011
Junior Member
With the 0.12.1 this is much faster yes.

But it always takes about 1 minute and an half.

Thanks
Re: Commit takes too long time [message #767983 is a reply to message #667791] Mon, 19 December 2011 10:09 Go to previous messageGo to next message
sylvain.pras is currently offline sylvain.prasFriend
Messages: 9
Registered: April 2011
Junior Member
I come back on this old topic, because it still disturb me and my work... i found that too long to commit on big projects.

But i found a workaround with use of GIT GUI. (http://code.google.com/p/msysgit/)

When i open my repository with GIT GUI, it propose me to compress the repository. I accept, compressing take few minutes, then when i come back in Eclipse, commit with Egit takes seconds when it was taking minutes...

Why doesn't Egit make this compression ?
Re: Commit takes too long time [message #768226 is a reply to message #767983] Mon, 19 December 2011 19:43 Go to previous message
Matthias Sohn is currently offline Matthias SohnFriend
Messages: 612
Registered: July 2009
Senior Member
We are on the way to implement git gc in JGit [1] when this is ready we can integrate it into EGit.
Until then you need to use native git's gc [2] to collect garbage and compact the repository.

[1] http://egit.eclipse.org/r/#change,4705
[2] http://schacon.github.com/git/git-gc.html
and http://alblue.bandlem.com/2011/11/git-tip-of-week-gc-and-pruning-this.html
Previous Topic:Clone, share... and next, question marks decorators ?
Next Topic:Will EGit support automatic stash when doing a checkout?
Goto Forum:
  


Current Time: Sat Dec 20 08:06:38 GMT 2014

Powered by FUDForum. Page generated in 0.01824 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software