This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA 5/4 take 2] Improved linker-debugger interface
- From: André Pönitz <andre dot poenitz at mathematik dot tu-chemnitz dot de>
- To: gdb-patches at sourceware dot org
- Date: Thu, 19 Jul 2012 23:17:40 +0200
- Subject: Re: [RFA 5/4 take 2] Improved linker-debugger interface
- References: <20120719151913.GF25093@redhat.com>
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...