Re: [PATCH v3 0/8] Fix GIT_CEILING_DIRECTORIES that contain symlinks
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Oct 21, 2012, 06:51 UTC
- Message-ID
- <7v7gqkgvxe.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <1350799057-13846-1-git-send-email-mhagger@alum.mit.edu>
Michael Haggerty <mhagger@alum.mit.edu> writes:
Show 9 quoted lines
> This patch series has the side effect that all of the directories > listed in GIT_CEILING_DIRECTORIES are accessed *unconditionally* to > resolve any symlinks that are present in their paths. It is > admittedly odd that a feature intended to avoid accessing expensive > directories would now *intentionally* access directories near the > expensive ones. In the above scenario this shouldn't be a problem, > because /home would be the directory listed in > GIT_CEILING_DIRECTORIES, and accessing /home itself shouldn't be > expensive.
Interesting observation. In the last sentence, "accessing /home" does not exactly mean accessing /home, but accessing / to learn about "home" in it, no?
> But there might be other scenarios for which this patch > series causes a performance regression.
Yeah, after merging this to 'next', we should ask people who care about CEILING to test it sufficiently.
Thanks for rerolling.