From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sceptre.pobox.com (sceptre.pobox.com [207.106.133.20]) by ozlabs.org (Postfix) with ESMTP id 593F0DDDF7 for ; Fri, 2 Nov 2007 10:57:40 +1100 (EST) Date: Thu, 1 Nov 2007 18:57:28 -0500 From: Nathan Lynch To: Medve Emilian-EMMEDVE1 Subject: Re: Module with 36K relocation entries Message-ID: <20071101235728.GE9695@localdomain> References: <598D5675D34BE349929AF5EDE9B03E270174CC98@az33exm24.fsl.freescale.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <598D5675D34BE349929AF5EDE9B03E270174CC98@az33exm24.fsl.freescale.net> Cc: linuxppc-dev@ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Medve Emilian-EMMEDVE1 wrote: > > I have module with 36K relocation entries (I know, I know, how could > that be...) and the count_relocs() function takes ~17 seconds to crunch > through the relocation table from the .rela.text section. I don't think > I can reduce the number of entries in the relocation table (can I?) so > I'm thinking at improving the performance of count_relocs() (currently > O(n^2)). Does anybody have a simpler idea? Does anyone have any > constructive suggestion on how to improve the situation? This seems to come up every few months. There was a patch submitted here: http://ozlabs.org/pipermail/linuxppc-dev/2007-June/037641.html