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.5 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: Junio C Hamano Subject: Re: [PATCH 2/5] support fetching into a shallow repository Date: Tue, 14 Nov 2006 09:42:34 -0800 Message-ID: <7vu011zzzp.fsf@assigned-by-dhcp.cox.net> References: <7vac2u1oee.fsf@assigned-by-dhcp.cox.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii NNTP-Posting-Date: Tue, 14 Nov 2006 17:42:48 +0000 (UTC) Cc: git@vger.kernel.org Return-path: Envelope-to: gcvg-git@gmane.org In-Reply-To: (Johannes Schindelin's message of "Tue, 14 Nov 2006 11:43:31 +0100 (CET)") User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) 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 1Gk2Ix-0006xU-Pi for gcvg-git@gmane.org; Tue, 14 Nov 2006 18:42:40 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755464AbWKNRmg (ORCPT ); Tue, 14 Nov 2006 12:42:36 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755466AbWKNRmg (ORCPT ); Tue, 14 Nov 2006 12:42:36 -0500 Received: from fed1rmmtao11.cox.net ([68.230.241.28]:64171 "EHLO fed1rmmtao11.cox.net") by vger.kernel.org with ESMTP id S1755464AbWKNRmf (ORCPT ); Tue, 14 Nov 2006 12:42:35 -0500 Received: from fed1rmimpo02.cox.net ([70.169.32.72]) by fed1rmmtao11.cox.net (InterMail vM.6.01.06.03 201-2131-130-104-20060516) with ESMTP id <20061114174235.BPZA296.fed1rmmtao11.cox.net@fed1rmimpo02.cox.net>; Tue, 14 Nov 2006 12:42:35 -0500 Received: from assigned-by-dhcp.cox.net ([68.5.247.80]) by fed1rmimpo02.cox.net with bizsmtp id mhih1V00F1kojtg0000000; Tue, 14 Nov 2006 12:42:41 -0500 To: Johannes Schindelin Sender: git-owner@vger.kernel.org Johannes Schindelin writes: >> I think the "commit = p->item" part is trying to do a tail >> recursion optimization, but this is a bit too clever to my >> liking (at first I mistook that the code forgot to re-point p at >> its parents list and incrementing cur_depth). > > I take it as a compliment ;-) > > Seriously again, would you like me to add a comment, or rather do away > with the tail recursion optimization? It is not a huge optimization > anyway. Maybe a cleverer way would be to use an object_array instead of a > commit_list? Leaving it as a compliment is just fine.