From: Junio C Hamano Date: Thu, 07 Jun 2012 18:28:13 GMT Subject: Re: [PATCH 4/4] exclude: reuse last basename comparison 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 writes: > 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.