This is the mail archive of the
gdb@sourceware.cygnus.com
mailing list for the GDB project.
Re: worst case symbol lookup performance
- To: jtc@redback.com
- Subject: Re: worst case symbol lookup performance
- From: Jim Blandy <jimb@cygnus.com>
- Date: 11 Aug 1999 21:22:05 -0500
- Cc: gdb@sourceware.cygnus.com
- References: <5m4si7fxsv.fsf@jtc.redbacknetworks.com>
Hah. At the GDB meeting I just gave a presentation about GDB's symbol
table structures, in which everyone was astonished at the lack of hash
tables or trees or anything reasonable, to which I happily replied
that lookups were fast enough without them. Well, I guess that didn't
last long.
How many object files do you have? That is, how many entries are
there in your objfile's psymtab list? I don't see why lookup_symbol
should be calling lookup_partial_symbol once per symbol. Twice per
psymtab, yes.