This is the mail archive of the gdb-patches@sources.redhat.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]
Other format: [Raw text]

Re: [rfa/dwarf] Support for attributes pointing to a different CU


On Wed, Sep 29, 2004 at 12:49:35PM -0500, Jim Blandy wrote:
> 
> Since we never toss types anyway, would it make sense to move
> type_hash to dwarf2_per_objfile?

I don't think so.  type_hash is used in two ways: individual items are
set, when we know which CU we ought to have, and a whole CU is
restored, when we know which CU we're restoring.  It's always more
efficient to have a lot of small hash tables if you know precisely
which one you'll need; fewer collisions.

-- 
Daniel Jacobowitz


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