Re: [patch] Speed up find_pc_section

Paul Pluzhnikov
2009-07-21T01:35:42Z

[-- Attachment #1: Type: text/plain, Size: 825 bytes --]

On Fri, Jul 17, 2009 at 10:19 AM, Paul Pluzhnikov<ppluzhnikov@google.com> wrote:

> NNN before after
>
> 256 0m1.042s 0m0.337s
> 512 0m6.837s 0m0.887s
> 1024 0m31.406s 0m4.594s

Looks like I managed to confuse myself even more (too many variants of
gen.pl :-(

Above results are for a simplified test case (gen-20090720.pl, attached).

Here are the timings I get using unpatched vs. patched GDB using the
original gen.pl from
http://sourceware.org/ml/gdb-patches/2009-07/msg00417/gen.pl

NNN before after

256 0m03.544s 0m02.724s
512 0m15.693s 0m10.025s
1024 1m06.844s 0m39.742s

So not such a drastic improvement for *this* test case.

Most of the time for this test is actually spent in dwarf2_frame_find_fde,
for which I'll send another patch shortly.

Thanks,
--
Paul Pluzhnikov

[-- Attachment #2: gen-20090720.pl --]
[-- Type: application/x-perl, Size: 518 bytes --]