From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28804 invoked by alias); 8 Oct 2008 23:56:10 -0000 Received: (qmail 28796 invoked by uid 22791); 8 Oct 2008 23:56:09 -0000 X-Spam-Check-By: sourceware.org Received: from mx2.redhat.com (HELO mx2.redhat.com) (66.187.237.31) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 08 Oct 2008 23:55:20 +0000 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id m98NtF5N003048; Wed, 8 Oct 2008 19:55:15 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id m98NtDol009601; Wed, 8 Oct 2008 19:55:14 -0400 Received: from opsy.redhat.com (vpn-13-167.rdu.redhat.com [10.11.13.167]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id m98NtCgZ028308; Wed, 8 Oct 2008 19:55:13 -0400 Received: by opsy.redhat.com (Postfix, from userid 500) id ABFF8C88070; Wed, 8 Oct 2008 17:53:12 -0600 (MDT) To: Joel Brobecker Cc: Jan Kratochvil , gdb-patches@sourceware.org, Daniel Jacobowitz Subject: Re: type/main_type/field size [Re: [patch] static_kind -> bit0, bit1] References: <20080818111120.GE16894@adacore.com> <200808181553.m7IFrG3w005270@d12av02.megacenter.de.ibm.com> <48A59B3C.9050801@net-b.de> <20080818111120.GE16894@adacore.com> <20080907115637.GA12939@host0.dyn.jankratochvil.net> <20080919221221.GA23372@adacore.com> <20080926125754.GC21287@caradoc.them.org> <20081006200928.GD3588@adacore.com> <20081007232111.GA6913@host0.dyn.jankratochvil.net> <20081008033125.GF3810@adacore.com> From: Tom Tromey Reply-To: Tom Tromey X-Attribution: Tom Date: Wed, 08 Oct 2008 23:56:00 -0000 In-Reply-To: <20081008033125.GF3810@adacore.com> (Joel Brobecker's message of "Tue\, 7 Oct 2008 23\:31\:25 -0400") Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2008-10/txt/msg00264.txt.bz2 >>>>> "Joel" == Joel Brobecker writes: Joel> Once in a while, Tom will post some numbers with each of his size Joel> improvements. He worked pretty hard at reducing the sizes by some Joel> bytes, so I'd like to know what he thinks of the increase before Joel> adding a pointer back (4-8 bytes). Joel> (2MB seems like a small and reasonable increase to me) The main_type shrinkage patch was here: http://sourceware.org/ml/gdb-patches/2008-08/msg00464.html According to the note this saved about 1% on "gdb -readnow cc1". However, this is pretty artificial. -readnow is not something normal users do. So, offhand I would say that type and main_type are not extremely size-sensitive. I suppose it is a judgment call as to whether you would rather use more memory and have the code be clearer, or whether you would rather save memory and use a bit to indicate (IIUC) a special dwarf-specific callback. Tom