Re: Git benchmarks at OpenOffice.org wiki

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Jan Holesovsky <kendy@...>, <git@...>
Cc: <dev@...>
Date: Wednesday, May 2, 2007 - 7:30 pm

Jan Holesovsky wrote:


I think the supposition that SVN uses hardlinks for pristine copy
of sources (HEAD version) seems probable; then there it is 100M overhead
plus size of changed files, and of course this tricks works only on
filesystems which support hardlinks, and assumes either hardlinks being
COW-links (copy-on-write) or editor behaving.
 

I forgot to add there is possible to graft historical repository to the
current work repository, resulting in full history available. For example
Linux kernel repository has backported from BK historical repository, and
there is grafts file which connect those two repositories.


git-clone(1):

--depth <depth>::
        Create a 'shallow' clone with a history truncated to the
        specified number of revs.  A shallow repository has
        number of limitations (you cannot clone or fetch from
        it, nor push from nor into it), but is adequate if you
        want to only look at near the tip of a large project
        with a long history, and would want to send in a fixes
        as patches.

It is possible that those limitations will be lifted in the future
(if possible), so there is alternate possibility to reduce needed
disk space for git checkout. But certainly this is not for everybody.


The problem with implementing this feature (you can do partial checkout
using low level commands, but this feature is not implemented [yet?]
per se) is with doing merge on part which is not checked out. Might
not be a problem for OOo; but this might be also not needed for OOo.
Sometimes submodules are better, sometimes partial checkout is the
only way: see below.


In my opinion each submodule should be able to compile and test by
itself. You can go X.Org route with splitting sources into modules...
or you can make use of the new submodules support (currently plumbing
level, i.e. low level commands), aka. gitlinks.

The submodules support makes it possible to split sources into
independent modules (parts), which can be developed independently,
and which you can download (clone, fetch) or not, while making it
possible to bind it all together into one superproject.

See (somewhat not up to date) http://git.or.cz/gitwiki/SubprojectSupport
page on git wiki.


By the way, the time to switch branch should be proportional to number
of changed files, which you can get with "git diff --summary unxsplash
HEAD". Or to be more realistic to checkout some old version
(some old tag), as usually branches which got merged in are deleted
(or even never got published). For example when bisecting some bug:
Subversion doesn't have bisect, does it?

I wonder if running "git pack-refs" would help this benchmark...

-- 
Jakub Narebski
Poland
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Git benchmarks at OpenOffice.org wiki, Jakub Narebski, (Tue May 1, 5:46 pm)
Re: Git benchmarks at OpenOffice.org wiki, Florian Weimer, (Thu May 3, 3:03 am)
Re: Git benchmarks at OpenOffice.org wiki, Johannes Schindelin, (Thu May 3, 5:33 am)
Re: Git benchmarks at OpenOffice.org wiki, Robin Rosenberg, (Thu May 3, 6:16 am)
Re: Git benchmarks at OpenOffice.org wiki, Martin Langhoff, (Thu May 3, 6:48 am)
Re: Git benchmarks at OpenOffice.org wiki, Robin Rosenberg, (Sun May 6, 4:05 pm)
Re: Git benchmarks at OpenOffice.org wiki, Jan Holesovsky, (Wed May 2, 10:24 am)
Re: Git benchmarks at OpenOffice.org wiki, Jakub Narebski, (Wed May 2, 7:30 pm)
Re: [tools-dev] Re: Git benchmarks at OpenOffice.org wiki, Jan Holesovsky, (Thu May 3, 7:51 am)
Re: [tools-dev] Re: Git benchmarks at OpenOffice.org wiki, Jakub Narebski, (Thu May 3, 8:48 pm)
Re: Git benchmarks at OpenOffice.org wiki, Petr Baudis, (Wed May 2, 12:15 pm)
Re: Git benchmarks at OpenOffice.org wiki, Jan Holesovsky, (Wed May 2, 12:27 pm)
Re: Git benchmarks at OpenOffice.org wiki, Petr Baudis, (Wed May 2, 12:37 pm)
Re: Git benchmarks at OpenOffice.org wiki, Petr Baudis, (Wed May 2, 12:48 pm)
Re: Git benchmarks at OpenOffice.org wiki, Johannes Schindelin, (Wed May 2, 10:35 am)
Re: Git benchmarks at OpenOffice.org wiki, Johannes Schindelin, (Wed May 2, 6:24 am)
Re: Git benchmarks at OpenOffice.org wiki, Jan Holesovsky, (Wed May 2, 10:41 am)
Re: Git benchmarks at OpenOffice.org wiki, Johannes Schindelin, (Wed May 2, 12:24 pm)
Re: Git benchmarks at OpenOffice.org wiki, Jakub Narebski, (Wed May 2, 7:33 am)
Re: Git benchmarks at OpenOffice.org wiki, Linus Torvalds, (Fri May 4, 11:56 pm)
Re: Git benchmarks at OpenOffice.org wiki, Junio C Hamano, (Mon May 7, 4:05 am)
Re: Git benchmarks at OpenOffice.org wiki, Linus Torvalds, (Mon May 7, 11:22 am)
Re: Git benchmarks at OpenOffice.org wiki, Johannes Schindelin, (Wed May 2, 10:55 am)
Re: Git benchmarks at OpenOffice.org wiki, Andy Parkins, (Wed May 2, 4:55 am)
Re: Git benchmarks at OpenOffice.org wiki, Julian Phillips, (Wed May 2, 5:51 am)
Re: Git benchmarks at OpenOffice.org wiki, Andy Parkins, (Wed May 2, 6:58 am)
Re: Git benchmarks at OpenOffice.org wiki, Junio C Hamano, (Wed May 2, 1:26 pm)
Re: Git benchmarks at OpenOffice.org wiki, Jan Holesovsky, (Wed May 2, 10:37 am)
Re: Git benchmarks at OpenOffice.org wiki, Andy Parkins, (Wed May 2, 11:33 am)
Re: Git benchmarks at OpenOffice.org wiki, Julian Phillips, (Wed May 2, 10:28 am)
Re: Git benchmarks at OpenOffice.org wiki, Andy Parkins, (Wed May 2, 11:30 am)
Re: Git benchmarks at OpenOffice.org wiki, Julian Phillips, (Wed May 2, 1:11 pm)
Re: Git benchmarks at OpenOffice.org wiki, Junio C Hamano, (Tue May 1, 6:27 pm)