Re: git-import.sh using git-fast-import

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Aug 28, 2007 at 02:11:18AM -0400, Shawn O. Pearce wrote:

> Another place where fast-import can be a big win over git-add is
> importing a huge number of loose objects and then doing a `repack
> -a -d -f`.  Even though the fast-import packfile is suboptimal we
> can usually get to the data in the packfile faster than we can get
> to it from loose object files.  So adding in the repack time might
> show fast-import is slightly faster in some coditions.

Just for giggles, here's the timing of the "core" and "perl" versions,
both with a "git repack -a -d -f" afterwards.

core:
real    0m3.353s
user    0m2.108s
sys     0m0.580s

perl:
real    0m3.138s
user    0m2.704s
sys     0m0.236s

So the perl version actually wins here, though with two caveats:
  - the core version spends more sys time. Presumably this is because it
    actually gives you a working index, whereas the fast-import version
    does not.
  - the perl version actually consumes _more_ CPU time, but finishes
    more quickly. Yes, this is an SMP box. :)

-Peff
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux