Re: git pack/unpack over bittorrent - works!

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

 



On Thu, Sep 2, 2010 at 8:29 PM, Shawn O. Pearce <spearce@xxxxxxxxxxx> wrote:
> Luke Kenneth Casson Leighton <luke.leighton@xxxxxxxxx> wrote:
>>
>>  * based on what you kindly mentioned about "git repack -f", would a
>> (well-written!) patch to git pack-objects to add a
>> "--single-thread-only" option be acceptable?
>
> Probably not.  I can't think of a good reason to limit the number
> of threads that get used.

 i can - so that git pack-objects, after "git repack -f", returns a
canonical pack! :)

> We already have pack.threads as a
> configuration variable to support controlling this for the system,
> but that's about the only thing that really makes sense.

 ookaaay, so that would work, but would force that particular repo to
be _entirely_ single-threaded, which is non-optimal when all that's
needed is "git pack-objects" to be single-threaded.  sure, i could
write a hack with some shell-script which takes the current option /
value for "pack.threads", stores it, changes it to 1, runs "git
pack-objects" and then changes it back again, but... eeuw.  (not to
mention race-conditions....)

 l.
--
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]