From 46233c40204756df3a927cab3b429df54f8e3d8c Mon Sep 17 00:00:00 2001 From: Daniel Shahaf Date: Fri, 10 Mar 2017 09:05:16 +0000 Subject: 40817: __git_recent_branches: Retrieve less data, but faster. By replacing the --grep-reflog=needle argument with a ${(M)...:#needle} filter, we retrieve less data from the reflog, and consequently run (on my test cases) 16% to 40% faster. The trade-off is that we retrieve less data: instead of retrieving the 1000 most recent 'checkout' operations, we retrieve the most recent 1000 operations, which would include fewer than 1000 checkout operations. Also change [[:xdigit:]] to [0-9a-f] since it's faster, however, the absolute gain from this is minor compared to the cost of 'git reflog'. --- ChangeLog | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index 225f7312f..221967fc0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2017-03-14 Daniel Shahaf + * 40817: Completion/Unix/Command/_git: __git_recent_branches: + Retrieve less data, but faster. + * 40822: Doc/Zsh/contrib.yo: vcs_info quilt: Document the '.quilt-foo' zstyle context element. (Compare users/20807.) -- cgit 1.4.1