From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4037 invoked by alias); 3 Oct 2004 16:12:23 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 4027 invoked from network); 3 Oct 2004 16:12:22 -0000 Received: from unknown (HELO nevyn.them.org) (66.93.172.17) by sourceware.org with SMTP; 3 Oct 2004 16:12:22 -0000 Received: from drow by nevyn.them.org with local (Exim 4.34 #1 (Debian)) id 1CE8yE-00012i-2f; Sun, 03 Oct 2004 12:12:22 -0400 Date: Sun, 03 Oct 2004 16:12:00 -0000 From: Daniel Jacobowitz To: Jim Blandy Cc: gdb-patches@sources.redhat.com Subject: Re: [rfa/dwarf] Support for attributes pointing to a different CU Message-ID: <20041003161221.GA3234@nevyn.them.org> Mail-Followup-To: Jim Blandy , gdb-patches@sources.redhat.com References: <20040923045723.GA11871@nevyn.them.org> <20040924003412.GB10500@nevyn.them.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.5.1+cvs20040105i X-SW-Source: 2004-10/txt/msg00036.txt.bz2 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