Re: Performance regression in `git branch` due to ref-filter usage

2017-05-17 Thread Jeff King
On Wed, May 17, 2017 at 01:14:34PM +0200, Michael Haggerty wrote: > While working on reference code, I was running `git branch` under > `strace`, when I noticed that `$GIT_DIR/HEAD` was being `lstat()`ed and > `read()` 121 times. This is in a repository with 114 branches, so > probably it is being

Performance regression in `git branch` due to ref-filter usage

2017-05-17 Thread Michael Haggerty
While working on reference code, I was running `git branch` under `strace`, when I noticed that `$GIT_DIR/HEAD` was being `lstat()`ed and `read()` 121 times. This is in a repository with 114 branches, so probably it is being run once per branch. The extra work makes a measurable difference to the (