Re: [PATCH 5/5] tree-walk: match_entry microoptimization

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Mar 31, 2011 at 8:38 AM, Dan McGee <dpmcgee@xxxxxxxxx> 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 <dpmcgee@xxxxxxxxx>

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
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]