Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] --blame very slow on large codebases #1519

Open
ianlewis opened this issue Jul 17, 2024 · 2 comments
Open

[bug] --blame very slow on large codebases #1519

ianlewis opened this issue Jul 17, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@ianlewis
Copy link
Owner

ianlewis commented Jul 17, 2024

Running todos --blame on a large codebase such as the Kubernetes codebase is very slow and doesn't seem to make much progress.

@ianlewis ianlewis added the bug Something isn't working label Jul 17, 2024
@ianlewis ianlewis added this to the v0.9.0 milestone Jul 17, 2024
@ianlewis ianlewis self-assigned this Jul 17, 2024
@ianlewis ianlewis changed the title [bug] v0.9.0-rc.2 --blame really slow on large codebases [bug] v0.9.0-rc.2 --blame really slow on large codebases Jul 17, 2024
@ianlewis ianlewis changed the title [bug] v0.9.0-rc.2 --blame really slow on large codebases [bug] v0.9.0-rc.2 --blame very slow on large codebases Jul 18, 2024
@ianlewis ianlewis changed the title [bug] v0.9.0-rc.2 --blame very slow on large codebases [bug] --blame very slow on large codebases Jul 22, 2024
@ianlewis
Copy link
Owner Author

It seems that go-git is pretty inefficient when it comes to repositories with a lot of commits. Running todos --blame on even just one file hangs for a very long time (I've never had it complete) for the Kubernetes codebase.

For comparison, git blame test/utils/runners.go runs in about 0.6 seconds.

@ianlewis
Copy link
Owner Author

It seems this has been an issue for a while.
go-git/go-git#14

@ianlewis ianlewis removed this from the v0.9.0 milestone Aug 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant