This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] massively speed up "info var foo" on large programs
- From: Doug Evans <dje at google dot com>
- To: gdb-patches at sourceware dot org
- Cc: ratmice at gmail dot com
- Date: Thu, 24 May 2012 14:28:43 -0700
- Subject: Re: [RFA] massively speed up "info var foo" on large programs
- References: <20120524175852.D38381E139C@ruffy2.mtv.corp.google.com>
On Thu, May 24, 2012 at 10:58 AM, Doug Evans <dje@google.com> wrote:
> Hi.
>
> I'm not entirely sure this patch is correct, but it feels correct (*1),
> and is a massive win.
> "info var Task" in one large program goes from 350 seconds to 28 seconds.
>
> [...]
>
> 2012-05-23 ?Doug Evans ?<dje@google.com>
>
> ? ? ? ?* symtab.c (lookup_msymbol_in_objfile): New function.
> ? ? ? ?(search_symbols): Call it.
Hmmm.
One thing that occurs to me is separate debug objfiles.
lookup_msymbol_in_objfile should probably search them.