This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]