From 0ba94a4b84f58270243533f35bbe204b343e6d77 Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Thu, 5 Nov 2026 21:32:04 -1000 Subject: Note what the log's count columns cost On a scratch repository with 400-line files, the line count took a 50-row log from 5 ms to 38 ms, while the file count alone added 3 ms. A commit-graph file changes neither, since the diffs read trees and blobs rather than commits. --- MANUAL.txt | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/MANUAL.txt b/MANUAL.txt index 92249a7..2e785a1 100644 --- a/MANUAL.txt +++ b/MANUAL.txt @@ -265,13 +265,16 @@ enable-index-owner:: enable-log-filecount:: Flag which, when set to "1", makes cgit print the number of modified - files for each commit on the repository log page. Default value: "0". - See also: "repo.enable-log-filecount". + files for each commit on the repository log and summary pages. To count + them, cgit diffs the tree of every listed commit against that of its + first parent. Default value: "0". See also: "repo.enable-log-filecount". enable-log-linecount:: Flag which, when set to "1", makes cgit print the number of added and - removed lines for each commit on the repository log page. Default value: - "0". See also: "repo.enable-log-linecount". + removed lines for each commit on the repository log and summary pages. + To count them, cgit diffs every file each listed commit changes against + its first parent, which can make those pages several times slower. + Default value: "0". See also: "repo.enable-log-linecount". enable-mailmap:: Flag which, when set to "1", applies the repository's mailmap to every -- cgit 2.12.1