From: Nguyen Thai Ngoc Duy Date: Sat, 02 Apr 2011 09:06:56 GMT Subject: Re: [PATCH 5/5] tree-walk: match_entry microoptimization Message-ID: In-Reply-To: <1301535481-1085-5-git-send-email-dpmcgee@gmail.com> On Thu, Mar 31, 2011 at 8:38 AM, Dan McGee wrote: > Before calling strncmp(), see if we can get away with checking only the > first character of the passed path components instead. > > Signed-off-by: Dan McGee I wonder if inlining strcmp() would be better (at least cleaner code). It seems like you try to avoid the function call cost here. -- Duy