Add options to speed it way up by reducing qx() calls #2
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Kyle, thanks for this tool, which I have been using for a year or two now with great success! Today I was trying out the Devel::NYTProf profiler on
git-log-compactand noticed that most of the time went intoqx()calls. I investigated, and found that most of them were calls togit config.This PR has several commits, each of which permits replacing a
qx(git config ...)call with a command-line parameter or default. On a test repo I have with about twenty commits, the time to rungit-log-compactdropped from about one second to about 200 ms with these changes.The last commit also adds an environment variable that can be used to hold the defaults, so you don't even have to call
git configto get those!Please let me know if you have any questions or comments. Thank you very much for considering this PR!
Chris (cpan: CXW)