From: Matthias Urlichs Subject: Re: fix git-pack-redundant crashing sometimes Date: Thu, 17 Nov 2005 17:56:31 +0100 Organization: {M:U} IT Consulting Message-ID: References: <81b0412b0511150749g5672158v7b39c02ffdf13e08@mail.gmail.com> <20051115213442.GA4256@steel.home> <437A560E.8020500@etek.chalmers.se> <20051115223340.GA3951@steel.home> <437BA6A6.8080900@etek.chalmers.se> <437BC7D1.1070605@etek.chalmers.se> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE X-From: git-owner@vger.kernel.org Thu Nov 17 18:08:30 2005 Return-path: Received: from vger.kernel.org ([209.132.176.167]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EcnAc-00086u-Hh for gcvg-git@gmane.org; Thu, 17 Nov 2005 18:03:34 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932438AbVKQRDV convert rfc822-to-quoted-printable (ORCPT ); Thu, 17 Nov 2005 12:03:21 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932440AbVKQRDV (ORCPT ); Thu, 17 Nov 2005 12:03:21 -0500 Received: from main.gmane.org ([80.91.229.2]:15259 "EHLO ciao.gmane.org") by vger.kernel.org with ESMTP id S932438AbVKQRDT (ORCPT ); Thu, 17 Nov 2005 12:03:19 -0500 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Ecn6J-0006R4-8C for git@vger.kernel.org; Thu, 17 Nov 2005 17:59:07 +0100 Received: from run.smurf.noris.de ([192.109.102.41]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 17 Nov 2005 17:59:07 +0100 Received: from smurf by run.smurf.noris.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 17 Nov 2005 17:59:07 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: git@vger.kernel.org X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: run.smurf.noris.de X-Face: '&-&kxR\8+Pqalw@VzN\p?]]eIYwRDxvrwEM Hi, Lukas Sandstr=C3=B6m wrote: > After doing some maths; actually it is very exponential. 2**n - 1 to = be precise. In the general case, yes. However, you can just sort the packs by date and sequentially drop all that can be dropped. That's not optimal in th= e general case, but for us it should be close enough. --=20 Matthias Urlichs | {M:U} IT Design @ m-u-it.de | smurf@smurf.nor= is.de Disclaimer: The quote was selected randomly. Really. | http://smurf.nor= is.de - - When was the last time you were drunk?