From mboxrd@z Thu Jan 1 00:00:00 1970 From: Junio C Hamano Subject: Re: [PATCH] Introduce get_octopus_merge_bases() in commit.c Date: Mon, 09 Jun 2008 15:55:47 -0700 Message-ID: <7vd4mqfcb0.fsf@gitster.siamese.dyndns.org> References: <1213051426-11530-1-git-send-email-vmiklos@frugalware.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Johannes Schindelin , git@vger.kernel.org To: Miklos Vajna X-From: git-owner@vger.kernel.org Tue Jun 10 00:56:52 2008 Return-path: Envelope-to: gcvg-git-2@gmane.org Received: from vger.kernel.org ([209.132.176.167]) by lo.gmane.org with esmtp (Exim 4.50) id 1K5qIF-00021F-VW for gcvg-git-2@gmane.org; Tue, 10 Jun 2008 00:56:52 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753848AbYFIWz6 (ORCPT ); Mon, 9 Jun 2008 18:55:58 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753941AbYFIWz6 (ORCPT ); Mon, 9 Jun 2008 18:55:58 -0400 Received: from a-sasl-fastnet.sasl.smtp.pobox.com ([207.106.133.19]:41007 "EHLO sasl.smtp.pobox.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752204AbYFIWz5 (ORCPT ); Mon, 9 Jun 2008 18:55:57 -0400 Received: from localhost.localdomain (localhost [127.0.0.1]) by a-sasl-fastnet.sasl.smtp.pobox.com (Postfix) with ESMTP id F1AE653B0; Mon, 9 Jun 2008 18:55:54 -0400 (EDT) Received: from pobox.com (ip68-225-240-77.oc.oc.cox.net [68.225.240.77]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-sasl-fastnet.sasl.smtp.pobox.com (Postfix) with ESMTPSA id 499B753AB; Mon, 9 Jun 2008 18:55:51 -0400 (EDT) In-Reply-To: <1213051426-11530-1-git-send-email-vmiklos@frugalware.org> (Miklos Vajna's message of "Tue, 10 Jun 2008 00:43:46 +0200") User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) X-Pobox-Relay-ID: 376B1822-3677-11DD-A997-F9737025C2AA-77302942!a-sasl-fastnet.pobox.com Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: Miklos Vajna writes: > Exactly. I modified merge_bases_many() to use a commit list. I just looked at your f755fb6; from the point of view of merge_bases() which is far more often used, I think this is not an improvement but actively wrong thing to do. Most of the time callers compute merge base of two, and the codepath should be optimized for that case.