Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755603Ab0K2Xcj (ORCPT ); Mon, 29 Nov 2010 18:32:39 -0500 Received: from mail-yw0-f46.google.com ([209.85.213.46]:46439 "EHLO mail-yw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752481Ab0K2Xci convert rfc822-to-8bit (ORCPT ); Mon, 29 Nov 2010 18:32:38 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=g5iGD0tV1rc+vu6Bl8IRkFdvdGp236Svb0DYLDsMtHTj2+H5yKxGvs8RURVGyaLcx8 GIq5jER6SDtzRyhrta6UFX9L6fRa1J8nXWJhEdbMR4PgaZyFEUQjTIs0CG1/lR9nIW0X OVK0dvdEc8WSxkFTzLnodD371jiE/Z22yjJ9g= MIME-Version: 1.0 In-Reply-To: <4CF30B46.4000203@pavlinux.ru> References: <4CF30B46.4000203@pavlinux.ru> Date: Mon, 29 Nov 2010 18:32:37 -0500 Message-ID: Subject: Re: [PATCH] Repalce strncmp by memcmp From: Arnaud Lacombe To: pavel@pavlinux.ru Cc: LKML Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 724 Lines: 23 Hi, On Sun, Nov 28, 2010 at 9:09 PM, Pavel Vasilyev wrote: > > ? ?This patch replace all strncmp(a, b, c) by ?memcmp(a, b, c). > > I test on x86_64 (AMD Opteron 285). > > #include > Could you at least do your "performance/code analysis" [NDLR: ahem...] in a kernel environment ? only belongs to userland and the "K" of lkml stands for "kernel". Thanks, - Arnaud ps: please don't send a +500k on the list, that's rude to many people. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/