🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.git
Article #479

Re: Performance regression in `git log --follow`

#479
From: Miklos Vajna
Date: Wed, 14 Oct 2026 06:16
30 lines
7473 bytes
Hi Patrick,

On Tue, Oct 13, 2026 at 03:55:01PM +0200, Patrick Steinhardt <ps@pks.im> wrote:
> I've bisected the regression to 304812ed33 (log: improve --follow
> following renames for non-linear history, 2026-06-22). I don't have time
> right now to debug any further, so I decided to just forward the report
> to the mailing list. I've also Cc'd the original author of the above
> commit.

Thanks for the report.

To some extent, this is expected: previously log --follow had a design
issue, as described at
<https://lore.kernel.org/git/xmqqjysz7r41.fsf@gitster.g/>. Now log
--follow finds more commits has it traverses non-linear history, which
takes more time.

Let's see if we can find some creative solution that keeps the new
design (storing / restoring the path to follow as you traverse
non-linear history) and at the same time improves performance for your
use-case. Quite possibly my patch is/was naive and we can avoid some not
needed work while still correctly following a path across renames.

I see Gabor already commented in the thread and same some ideas, but I
haven't read those yet.

Regards,

Miklos
Technical Details
Message-ID: <as8eS9VyMMTo1pa3@collabora.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!git+bounces-71938-linux-kernel-git=dewy.ru
References: <as44NVKZA9C9S5ae@pks.im>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!git+bounces-71938-linux-kernel-git=dewy.ru
From: vmiklos@collabora.com (Miklos Vajna)
Newsgroups: linux.kernel.git
Subject: Re: Performance regression in `git log --follow`
Date: Wed, 14 Oct 2026 08:16:43 +0200
Organization: Usenet Network
Message-ID: <as8eS9VyMMTo1pa3@collabora.com>
References: <as44NVKZA9C9S5ae@pks.im>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Injection-Info: usenet.network;
	logging-data="2231397"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:eToOBtkWTVEQCzOGykErbchkJ5o= sha256:Wk6riPk85tA6x6Kqd+yoHPvLYVlX8cHmmL2hY5ZmtDQ=
	sha1:Z/jjVZGnUnT6ii7DvhmpodQ8epI= sha256:ZldLCpxCx/pN3jNRHrzzuh3Uvio3seADvXSCLeNCSZk=
Content-Disposition: inline
List-ID: <git.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id 6EECB10FFF8; Wed, 14 Oct 2026 09:17:38 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -0.749
X-Spam-Status: No, score=-0.749 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
	DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.25,
	MAILING_LIST_MULTI=-1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001,
	URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (1024-bit key)
	header.d=collabora.com
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id PwmvJqmFkHwl;
	Wed, 14 Oct 2026 09:17:34 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=git+bounces-71938-linux-kernel-git=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=collabora.com
X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
	by mail.dewy.ru (Postfix) with ESMTPS id 7973B10D225; Wed, 14 Oct 2026 09:17:25 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1])
	by tor.lore.kernel.org (Postfix) with ESMTP id 9AE3140365; Wed, 14 Oct 2026 06:16:58 +0000 (UTC)
X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 331B06AD4;
	Wed, 14 Oct 2026 06:16:56 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (1024-bit key) header.d=collabora.com header.i=vmiklos@collabora.com header.b="CBADP0P9"
X-Received: from sender6-op-o12.zoho.com (sender6-op-o12.zoho.com [165.173.180.12])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id F387240963A
	for <git@vger.kernel.org>; Wed, 14 Oct 2026 06:16:53 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass smtp.client-ip=165.173.180.12
X-ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;
	t=1791958615; cv=pass; b=udxGrkFWY40Us43LYKjGfQnUxrf/OQTBratYnt85Qt8YC/aakeD+ZXiw2Ho0ggmn4wPVXVmAZEG3RnHg3l46TviJf+MS7hWM83ReknoZD3Y8yEdEAkKDMqeFkNkz7Of5omzy4/hgjxY2O3tENbJhow7a22NyKObglxoeWS3xPnI=
X-ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org;
	s=arc-20240116; t=1791958615; c=relaxed/simple;
	bh=oqvQ5WqS8s2U256lz2g+p5E5VmHtcoxY5HpVQODAfg4=;
	h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version:
	 Content-Type:Content-Disposition:In-Reply-To; b=JA7z8i9Bm35JtTXQ08tIz84CP4ziOcG1B7+Rh7nYRDSxsq+eEdMPT7efz+qfEspgSxtd7BsydXca3dmQd3RZBB/70E0B/7pGQYfDxF9tjUoYqOej1cpJ3xtCS0I81CwdLamjazEeQDkBPMZ8XM30kpTT4Sa/IK0fE0jVZYelIVA=
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (1024-bit key) header.d=collabora.com header.i=vmiklos@collabora.com header.b=CBADP0P9; arc=pass smtp.client-ip=165.173.180.12
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=collabora.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com
X-ARC-Seal: i=1; a=rsa-sha256; t=1791958608; cv=none; 
	d=zohomail.com; s=zohoarc; 
	b=XX8fvDLdzVFfnsgj13lKbZXg67xQwYImDoovRhyojw5FdSsEK0Y4V47aZNCHciXMqrTAcxCU4GNOtomaKXtA852aJpjLW4TJp82IV6eGjT1IicKRn6LwlgtpNWcGRNXzgbEwwAh5Hnmus2ngxFacgyCYSmBzWbjGyHJJabew78Q=
X-ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; 
	t=1791958608; h=Content-Type:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:Subject:Subject:To:To:Message-Id:Reply-To; 
	bh=oqvQ5WqS8s2U256lz2g+p5E5VmHtcoxY5HpVQODAfg4=; 
	b=N3np5tUir6L14D6cAdJ93ou2unIcxbdM4/N7KYBu7/2qeHJeB0jNDfMdE6fF1xBRw1duTJmdhXj0OnKU2tQ5vRUCI7wTDlCzUB5BYtSAPWN8vM4uahe5gj5gqYV8UWgx1TmI00HoqbJIYvlW0jaU1uBgD0w+elRfTNPeT3emiPs=
X-ARC-Authentication-Results: i=1; mx.zohomail.com;
	dkim=pass  header.i=collabora.com;
	spf=pass  smtp.mailfrom=vmiklos@collabora.com;
	dmarc=pass header.from=<vmiklos@collabora.com>
X-DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1791958608;
	s=zohomail; d=collabora.com; i=vmiklos@collabora.com;
	h=Date:Date:From:From:To:To:Cc:Cc:Subject:Subject:Message-ID:MIME-Version:Content-Type:In-Reply-To:Message-Id:Reply-To;
	bh=oqvQ5WqS8s2U256lz2g+p5E5VmHtcoxY5HpVQODAfg4=;
	b=CBADP0P9B06mPTZ2c4SpJJRWHzsI+zFgfDOmUEM+TG6Ijns4JX72ttSbK0POVc63
	nd0OiYxc+pPEaLfNfzc6ofaS01qJyfC8Fs8kFcvltUV6CmP2VMyHPw26BM+Hxjt05yZ
	5C38yvqzKin/PTZplK44ZJDLwteOQ5XxFauilMVs=
X-Received: by smtp.zohomail.com with SMTPS id 1791958607116568.022292679643;
	Tue, 13 Oct 2026 23:16:47 -0700 (PDT)
X-Cc: git@vger.kernel.org
X-Precedence: bulk
X-Mailing-List: git@vger.kernel.org
X-List-Subscribe: <mailto:git+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:git+unsubscribe@vger.kernel.org>
X-In-Reply-To: <as44NVKZA9C9S5ae@pks.im>
X-Zoho-Virus-Status: 1
X-Zoho-AV-Stamp: zmail-av-0.2.13.1.5.4/291.951.53
X-ZohoMailClient: External