public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] lib: string.c:  A speed optimized for strncpy
@ 2014-10-05 13:29 Rickard Strandqvist
  2014-10-05 13:29 ` Rickard Strandqvist
  0 siblings, 1 reply; 5+ messages in thread
From: Rickard Strandqvist @ 2014-10-05 13:29 UTC (permalink / raw)
  To: Rickard Strandqvist, Grant Likely
  Cc: Andrew Morton, Andi Kleen, Dan Carpenter, linux-kernel

This variant is in my tests about 7-10% faster, and I also think
it is perhaps even clearer code than before.

I assume that more will do the testing, I do not know if we should do tests
on different types of hardware as well, my test was on a new Intel I7.

Rickard Strandqvist (1):
  lib: string.c:  A speed optimized for strncpy

 lib/string.c |   12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

-- 
1.7.10.4


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-10-15 11:27 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-05 13:29 [PATCH] lib: string.c: A speed optimized for strncpy Rickard Strandqvist
2014-10-05 13:29 ` Rickard Strandqvist
2014-10-05 15:36   ` Joe Perches
2014-10-05 16:01     ` Rickard Strandqvist
2014-10-15 11:27       ` Dan Carpenter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox