[RFA 5/4 take 2] Improved linker-debugger interface

André Pönitz andre.poenitz@mathematik.tu-chemnitz.de
Thu Jul 19 21:17:00 GMT 2012


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...



More information about the Gdb-patches mailing list