From: Junio C Hamano Date: Wed, 07 Sep 2022 19:31:30 GMT Subject: Re: [PATCH 3/3] parse_object(): check commit-graph when skip_hash set Message-ID: In-Reply-To: Jeff King writes: > If the caller told us that they don't care about us checking the object > hash, then we're free to implement any optimizations that get us the > parsed value more quickly. An obvious one is to check the commit graph > before loading an object from disk. And in fact, both of the callers who > pass in this flag are already doing so before they call parse_object()! > > So we can simplify those callers, as well as any possible future ones, > by moving the logic into parse_object(). Nicely done.