Re: [patch] Speed up find_pc_section

Tom Tromey
2009-09-11T20:51:17Z

>>>>> "Paul" == Paul Pluzhnikov <ppluzhnikov@google.com> writes:

I'm finally catching up on this thread...

Paul> Perhaps I should just add a sequence number to 'struct objfile'? That
Paul> looks like it would almost give exact same ordering as what GDB used
Paul> before qsort+bsearch was introduced.

Is there some benefit to the old ordering?

I assumed that the old approach just gave the user an arbitrary
ordering, in which case any change here is no big deal. But, if there
is a benefit to the old ordering, sure, restore it.

How stable a sort would you want? You could just fall back to the
objfile's address. Or is that too awful?

Tom