Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I'd like to use hg or git for repo with size in about 5gb. Are they work proper on repo with such a big size?

share|improve this question

2 Answers 2

up vote 3 down vote accepted

A repository with 5 GB is large, but not outrageously large. You don't say if the 5 GB is for the history alone, the working copy, or a combined figure?

For comparison, I can tell you that the OpenOffice repository has has a history of 2.0 GB (about 270,000 changesets) and a working copy of 2.3 GB. Mercurial runs okay on that size:

$ time hg status
hg status  0.63s user 0.26s system 99% cpu 0.886 total

With a cold cache is takes 2.4 sec — a little longer, but not too bad. There are 69,000 files in the working copy.

In general, you can expect both Git and Mercurial to slow down as the repository grows. The complexity of the operations differ: hg status is obviously O(*number of files in the working copy*), hg commit has the complexity of hg status plus O(number of changed files). A simple command like hg cat has O(1) complexity in the number of files and number of changesets — Mercurial can reconstruct any version of a file in constant time.

share|improve this answer

I have never used hg but facebook recently sent a post about their git repo slowing down. I think their issue was all their "apps" are in one repo

http://thread.gmane.org/gmane.comp.version-control.git/189776

It's worth a read through for people trying to help them out

share|improve this answer
1  
Should this be a comment instead of an answer? –  Bart Silverstrim Mar 16 '12 at 15:14

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.