FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Cache invariants (repo_name, git_dir, toplevel_dir) to speed up processing large commits by smokris · Pull Request #218 · git-commit-notifier/git-commit-notifier · GitHub

Repository navigation

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

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

smokris wants to merge 2 commits into
git-commit-notifier:masterfrom
smokris:master

Conversation

smokris commented Apr 3, 2019

Copy link
Copy Markdown

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.

Copy link
Copy Markdown

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

smokris commented Apr 8, 2019

Copy link
Copy Markdown
Author

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

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL