This is the mail archive of the gdb@sourceware.cygnus.com 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]

Re: worst case symbol lookup performance



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.

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