Re: [PATCH 2/3] git-fetch: Support the local remote "."

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

 



On 3/13/07, Paolo Bonzini <paolo.bonzini@xxxxxxxxxxx> wrote:
Santi Béjar wrote:
> To this end, git-parse-remote is grown with a new kind of remote,
> `builtin'. This returns all the local branches in
> get_remote_default_refs_for_fetch. This is equivalent to having a
> fake remote as:
>
> [remote "local"]
> url = .
> fetch = refs/*
>
> Based on a patch from Paolo Bonzini.

Can you please compare the times to do "git fetch ."?  The reason
to touch git-fetch.sh was an optimization that Junio requested.

I found my 2nd submission to be 20% faster than the first.

Paolo


Yes. But this optimization is independent of this patch, as it already
exists without this (but it gets worse with this patch).

Also, I think, the split in fetch_main should be base on transport and
not on the definition of the remote.

Santi
-
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]