Skip to content

Conversation

@monnerat
Copy link
Collaborator

@monnerat monnerat commented Jan 22, 2026

Hi Yuki,
This time, the directory tree view is considerably accelerated.

I made some tests on a 32700-commits repository with a 1750-files directory (tests/data in curl repository). the previous algorithm takes 2m10s, while the new one only 2.5s ! Although not very meaningful for small projects, it is very impressive for large ones like curl or binutils-gdb.

There is a second commit to replace the outdated FSF postal address.

Cheers,
Patrick

FSF headquarter moved. Update README.md accordingly and use the latest
official GPLv1 text. The later only changes names in examples and
replaces the FSF postal address by an hyperlink and does not alter the
licensing terms.
The current algorithm used to determine the latest commit targeting
specific files calls "git log" for each of these files. Since there is
no index for that information, git runs through the log from the
beginning until it finds the commit: the time spent to do this operation
is then proportional to the number of files times the commit count.

The current patch changes this algorithm to handle all files in a directory
with a single "git log", drastically reducing the response time of a
directory tree view.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant