Re: RFC: don't cache objects larger than X

2016-10-17 Thread Jason A. Donenfeld
I think there actually might be a trick using rlimit to implement this type of streaming size check... ___ CGit mailing list CGit@lists.zx2c4.com http://lists.zx2c4.com/mailman/listinfo/cgit

Re: RFC: don't cache objects larger than X

2016-10-17 Thread Lukas Fleischer
On Wed, 12 Oct 2016 at 13:22:34, Jason A. Donenfeld wrote: > I face this same problem, in fact. Unless somebody beats me to it, I'd > be interested in giving this a stab. > > One issue is that cache entries are currently "streamed" into the > cache files, as they're produced. It's not trivially po

Re: RFC: don't cache objects larger than X

2016-10-12 Thread Konstantin Ryabitsev
On Wed, Oct 12, 2016 at 01:22:34PM +0200, Jason A. Donenfeld wrote: > I face this same problem, in fact. Unless somebody beats me to it, I'd > be interested in giving this a stab. > > One issue is that cache entries are currently "streamed" into the > cache files, as they're produced. It's not tri

Re: RFC: don't cache objects larger than X

2016-10-12 Thread Jason A. Donenfeld
I face this same problem, in fact. Unless somebody beats me to it, I'd be interested in giving this a stab. One issue is that cache entries are currently "streamed" into the cache files, as they're produced. It's not trivially possible to know how big it's going to be beforehand. This means that t