From: Junio C Hamano Date: Fri, 17 Apr 2015 22:21:30 GMT Subject: Re: [PATCH] limit_list: avoid quadratic behavior from still_interesting Message-ID: In-Reply-To: <20150417221104.GA8806@peff.net> Jeff King writes: > The implementation is fairly straightforward. Whenever we do > the linear search, we cache the interesting commit we find, > and next time check it before doing another linear search. > If that commit is removed from the list or becomes > UNINTERESTING itself, then we fall back to the linear > search. Nicely done, clever, simple and effective. Thanks.