From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10030 invoked by alias); 19 Jul 2012 21:17:58 -0000 Received: (qmail 10021 invoked by uid 22791); 19 Jul 2012 21:17:57 -0000 X-SWARE-Spam-Status: No, hits=-2.9 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,KHOP_THREADED,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from nick.hrz.tu-chemnitz.de (HELO nick.hrz.tu-chemnitz.de) (134.109.228.11) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 19 Jul 2012 21:17:43 +0000 Received: from 91-65-62-30-dynip.superkabel.de ([91.65.62.30] helo=localhost) by nick.hrz.tu-chemnitz.de with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.76) (envelope-from ) id 1Sry6P-0008LY-M7 for gdb-patches@sourceware.org; Thu, 19 Jul 2012 23:17:42 +0200 Date: Thu, 19 Jul 2012 21:17:00 -0000 From: =?iso-8859-1?Q?Andr=E9_P=F6nitz?= To: gdb-patches@sourceware.org Subject: Re: [RFA 5/4 take 2] Improved linker-debugger interface Message-ID: <20120719211740.GB2947@klara.mpi.htwm.de> References: <20120719151913.GF25093@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20120719151913.GF25093@redhat.com> X-Scan-AV: nick.hrz.tu-chemnitz.de;2012-07-19 23:17:41;c574bcb20e89d87047725e8def15732e X-Scan-SA: nick.hrz.tu-chemnitz.de;2012-07-19 23:17:42;2bd564453b86c18e163b111e27570ad3 X-Spam-Score: -1.0 (-) X-Spam-Report: --- Textanalyse SpamAssassin 3.3.1 (-1.0 Punkte) Fragen an/questions to: Postmaster TU Chemnitz * -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP --- Ende Textanalyse X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2012-07/txt/msg00379.txt.bz2 On Thu, Jul 19, 2012 at 04:19:13PM +0100, Gary Benson wrote: > Hi all, > > I did some profiling and realised that the probes patch I just mailed > had reintroduced calls to update_section_map, a slow function I did > some work to avoid calling last year: > > http://www.cygwin.com/ml/gdb-patches/2011-07/msg00460.html > http://www.cygwin.com/ml/gdb-patches/2011-10/msg00361.html > > Attached is a patch to avoid calling update_section_map from the > probes interface. Updated timings are as follows: > > no of solibs 100 250 500 1000 2000 5000 > ------------------------------------------------------------ > old interface 1 3 9 35 141 942 > new interface 0 0 1 4 14 89 > (times in seconds) > > So, with this patch GDB is not three but ten times faster. Nice. Andre' PS: It pretty much looks like there is still some quadratic behaviour somewhere...