Re: [PATCH] small update for strlen, strnlen, use less cpu instructions

From: Luke Skywalker
Date: Tue Jun 16 2015 - 14:57:09 EST


> This is not a valid patch submission. Please see
> Documentation/SubmittingPatches.

I resent the patch an hour ago based on that document, thanks for
pointing this out.
I need to know if the patch is in good shape now, thanks

>
> Anyway, why do you think your patch makes strlen() better?
> Now strlen() increments a variable for each character it faces, hence
> it will consume more cycles.

you can look at the output of objdump -d to see why, also the assembly
snippet send by another person make this clear.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/