[RFC] Native access to Git LFS cache

2016-06-26 Thread larsxschneider
From: Lars Schneider Hi, I found a way to make Git LFS faster up to a factor of 100x in repositories with a large number of Git LFS files. I am looking for comments if my approach would be acceptable by the Git community. ## What is Git LFS? Git LFS [1] is an extension to Git that handles large

Re: [RFC] Native access to Git LFS cache

2016-06-27 Thread Duy Nguyen
On Mon, Jun 27, 2016 at 7:38 AM, wrote: > ## Proposed solution > Git LFS caches its objects under .git/lfs/objects. Most of the time Git > LFS objects are already available in the cache (e.g. if you switch branches > back and forth). I implemented these "cache hits" natively in Git. > Please note

Re: [RFC] Native access to Git LFS cache

2016-06-27 Thread Junio C Hamano
larsxschnei...@gmail.com writes: > Unfortunately that fix helps only with cloning. Any local Git operation > that invokes the clean/smudge filter (e.g. switching branches) is still > slow. Do you know where the slowness comes from? Does Joey's new clean/smudge interface help GitLFS? You are not

Re: [RFC] Native access to Git LFS cache

2016-06-28 Thread Johannes Schindelin
Hi Duy, On Mon, 27 Jun 2016, Duy Nguyen wrote: > On Mon, Jun 27, 2016 at 7:38 AM, wrote: > > ## Proposed solution > > Git LFS caches its objects under .git/lfs/objects. Most of the time > > Git LFS objects are already available in the cache (e.g. if you switch > > branches back and forth). I im

Re: [RFC] Native access to Git LFS cache

2016-06-28 Thread Duy Nguyen
On Tue, Jun 28, 2016 at 11:40 AM, Johannes Schindelin wrote: > Hi Duy, > > On Mon, 27 Jun 2016, Duy Nguyen wrote: > >> On Mon, Jun 27, 2016 at 7:38 AM, wrote: >> > ## Proposed solution >> > Git LFS caches its objects under .git/lfs/objects. Most of the time >> > Git LFS objects are already avail

Re: [RFC] Native access to Git LFS cache

2016-06-28 Thread Johannes Schindelin
Hi Duy, On Tue, 28 Jun 2016, Duy Nguyen wrote: > On Tue, Jun 28, 2016 at 11:40 AM, Johannes Schindelin > wrote: > > > > On Mon, 27 Jun 2016, Duy Nguyen wrote: > > > >> On Mon, Jun 27, 2016 at 7:38 AM, wrote: > >> > ## Proposed solution > >> > Git LFS caches its objects under .git/lfs/objects.

Re: [RFC] Native access to Git LFS cache

2016-06-28 Thread Lars Schneider
> On 27 Jun 2016, at 18:09, Junio C Hamano wrote: > > larsxschnei...@gmail.com writes: > >> Unfortunately that fix helps only with cloning. Any local Git operation >> that invokes the clean/smudge filter (e.g. switching branches) is still >> slow. > > Do you know where the slowness comes from?

Re: [RFC] Native access to Git LFS cache

2016-06-28 Thread Lars Schneider
> On 28 Jun 2016, at 15:14, Johannes Schindelin > wrote: > > Hi Duy, > > On Tue, 28 Jun 2016, Duy Nguyen wrote: > >> On Tue, Jun 28, 2016 at 11:40 AM, Johannes Schindelin >> wrote: >>> >>> On Mon, 27 Jun 2016, Duy Nguyen wrote: >>> On Mon, Jun 27, 2016 at 7:38 AM, wrote: > ## Pr

Re: [RFC] Native access to Git LFS cache

2016-06-28 Thread Christian Couder
On Tue, Jun 28, 2016 at 3:22 PM, Lars Schneider wrote: > > @Christian/Peff: > Is there a place to look for more info about your remote-object-store idea? You may want to take a look at: https://github.com/chriscool/git/commits/external-odb I just updated it and I may send an updated RFC series

Re: [RFC] Native access to Git LFS cache

2016-06-28 Thread Duy Nguyen
On Tue, Jun 28, 2016 at 3:14 PM, Johannes Schindelin wrote: > Hi Duy, > > On Tue, 28 Jun 2016, Duy Nguyen wrote: > >> On Tue, Jun 28, 2016 at 11:40 AM, Johannes Schindelin >> wrote: >> > >> > On Mon, 27 Jun 2016, Duy Nguyen wrote: >> > >> >> On Mon, Jun 27, 2016 at 7:38 AM, wrote: >> >> > ## Pr

Re: [RFC] Native access to Git LFS cache

2016-06-28 Thread Duy Nguyen
On Tue, Jun 28, 2016 at 3:43 PM, Lars Schneider wrote: > >> On 28 Jun 2016, at 15:14, Johannes Schindelin >> wrote: >> >> Hi Duy, >> >> On Tue, 28 Jun 2016, Duy Nguyen wrote: >> >>> On Tue, Jun 28, 2016 at 11:40 AM, Johannes Schindelin >>> wrote: On Mon, 27 Jun 2016, Duy Nguyen wrote: