This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Huge slowdown since 6.0
On Fri, Feb 20, 2004 at 08:52:35AM -0800, David Carlton wrote:
> There's one other interesting point here - where exactly is the
> slowdown coming from? After all, we generate the same number of
> searches, and lookup_symbol can potentially look at all the static
> psymbols just like it could look at all the global psymbols. Not only
> that, but looking at the static psymbols is vastly slower than looking
> at the global psymbols (for no good reason, as far as I know, but
> that's a separate issue; lookup_partial_symbol has issues).
>
> But I suppose the point is that looking at all the static psymbols is
> only a very last resort in lookup_symbol, so (as long as the symbol
> you're looking for actually exists) it wouldn't get called very often.
>
> Or is there something else that I'm missing?
I'm not even getting to the point where we do searches. See
sort_pst_symbols for the issue.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer