Skip to content

Cache invariants (repo_name, git_dir, toplevel_dir) to speed up processing large commits#218

Open
smokris wants to merge 2 commits intogit-commit-notifier:masterfrom
smokris:master
Open

Cache invariants (repo_name, git_dir, toplevel_dir) to speed up processing large commits#218
smokris wants to merge 2 commits intogit-commit-notifier:masterfrom
smokris:master

Conversation

@smokris
Copy link
Copy Markdown

@smokris smokris commented Apr 3, 2019

git-commit-notifier was taking about 6 minutes to process a large commit in one of my repos. I ran ruby-prof and noticed that it was shelling out to git thousands of times to get the same information (repo name and directory info). I added caches for that data, which reduces the time to about 10 seconds.

@coveralls
Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.03%) to 14.305% when pulling 2b6f2aa on smokris:master into ac0aa0d on git-commit-notifier:master.

@smokris
Copy link
Copy Markdown
Author

smokris commented Apr 8, 2019

(Those same 7 test errors occur before the changes in this PR, too.)

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.

2 participants