Re: [PATCH 4/4] exclude: reuse last basename comparison
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jun 7, 2012, 18:28 UTC
- Message-ID
- <7vipf3geo2.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <1339055617-23028-4-git-send-email-pclouds@gmail.com>
Nguyễn Thái Ngọc Duy <pclouds@gmail.com> writes:
Show 5 quoted lines
> If two consecutive patterns share the same "base" and we just compared > base against pathname last time, we can just reuse the last comparison > result. > > This optmization is made with read_directory() in mind. Notice that
s/optm/optim/; just in case you need to reroll this one later.