lkml.org 
[lkml]   [2015]   [Jun]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] small update for strlen, strnlen, use less cpu instructions
From
> 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.


\
 
 \ /
  Last update: 2015-06-16 21:21    [W:0.027 / U:0.536 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site