Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753465Ab0GVQVa (ORCPT ); Thu, 22 Jul 2010 12:21:30 -0400 Received: from mx1.redhat.com ([209.132.183.28]:49870 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750838Ab0GVQV3 (ORCPT ); Thu, 22 Jul 2010 12:21:29 -0400 Date: Thu, 22 Jul 2010 13:21:07 -0300 From: Arnaldo Carvalho de Melo To: Ulrich Drepper Cc: a.p.zijlstra@chello.nl, davem@davemloft.net, imunsie@au.ibm.com, linux-kernel@vger.kernel.org, mhiramat@redhat.com, mingo@elte.hu, paulus@samba.org Subject: Re: Small perf optimization Message-ID: <20100722162107.GP5222@ghostprotocols.net> References: <201007221611.o6MGBnmW029378@hs20-bc2-1.build.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201007221611.o6MGBnmW029378@hs20-bc2-1.build.redhat.com> X-Url: http://acmel.wordpress.com User-Agent: Mutt/1.5.19 (2009-01-05) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 750 Lines: 18 Em Thu, Jul 22, 2010 at 12:11:49PM -0400, Ulrich Drepper escreveu: > Before this bad practice of using arrays of string pointers to constant > strings further spreads let's fix it. With this change not only is the > entire data associated with the arrays read-only, it also replaces a > memory lookup with a trivial arithmetic operation. The result is > a smaller and faster binary. > > > Signed-off-by: Ulrich Drepper Thanks, applying to perf/core (i.e. for 2.6.36). - Arnaldo -- 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/