From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS31976 209.132.176.0/21 X-Spam-Status: No, score=-3.4 required=3.0 tests=AWL,BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MSGID_FROM_MTA_HEADER,RP_MATCHES_RCVD shortcircuit=no autolearn=ham autolearn_force=no version=3.4.0 From: Linus Torvalds Subject: Re: [WISH] Store also tag dereferences in packed-refs Date: Sun, 19 Nov 2006 12:44:11 -0800 (PST) Message-ID: References: <7vmz6oeh2k.fsf@assigned-by-dhcp.cox.net> <20061118184345.GO7201@pasky.or.cz> <7vac2oefuz.fsf@assigned-by-dhcp.cox.net> Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII NNTP-Posting-Date: Sun, 19 Nov 2006 20:44:30 +0000 (UTC) Cc: Junio C Hamano , git@vger.kernel.org Return-path: Envelope-to: gcvg-git@gmane.org In-Reply-To: X-MIMEDefang-Filter: osdl$Revision: 1.159 $ X-Scanned-By: MIMEDefang 2.36 Precedence: bulk X-Mailing-List: git@vger.kernel.org Archived-At: Received: from vger.kernel.org ([209.132.176.167]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GltWY-0002SY-G1 for gcvg-git@gmane.org; Sun, 19 Nov 2006 21:44:22 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933230AbWKSUoT (ORCPT ); Sun, 19 Nov 2006 15:44:19 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S933247AbWKSUoS (ORCPT ); Sun, 19 Nov 2006 15:44:18 -0500 Received: from smtp.osdl.org ([65.172.181.25]:30936 "EHLO smtp.osdl.org") by vger.kernel.org with ESMTP id S933230AbWKSUoR (ORCPT ); Sun, 19 Nov 2006 15:44:17 -0500 Received: from shell0.pdx.osdl.net (fw.osdl.org [65.172.181.6]) by smtp.osdl.org (8.12.8/8.12.8) with ESMTP id kAJKiCix007606 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Sun, 19 Nov 2006 12:44:13 -0800 Received: from localhost (shell0.pdx.osdl.net [10.9.0.31]) by shell0.pdx.osdl.net (8.13.1/8.11.6) with ESMTP id kAJKiBIf017397; Sun, 19 Nov 2006 12:44:12 -0800 To: Marco Costalba Sender: git-owner@vger.kernel.org On Sun, 19 Nov 2006, Linus Torvalds wrote: > > So the optimizations that _can_ be done are: Of course, doing a "git repack -a -d && git prune" is always the #1 optimization. It will still look up the objects, but it will be a lot faster about it, and avoid a lot of the really bad IO patterns. If you don't want to repack, you could try just doing a "git clone" and then doing the "git pack-refs --prune" in the clone too. And compare cold-cache times between the two "identical" repositories.