From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2314 invoked by alias); 31 Oct 2003 17:45:05 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 2281 invoked from network); 31 Oct 2003 17:45:04 -0000 Received: from unknown (HELO localhost.redhat.com) (207.219.125.105) by sources.redhat.com with SMTP; 31 Oct 2003 17:45:04 -0000 Received: from redhat.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 9D9202B89; Fri, 31 Oct 2003 12:45:02 -0500 (EST) Message-ID: <3FA29F9E.9020104@redhat.com> Date: Fri, 31 Oct 2003 17:45:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.2) Gecko/20030820 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Jakub Jelinek Cc: Andrew Cagney , Daniel Jacobowitz , binutils@sources.redhat.com, gdb@sources.redhat.com Subject: Re: A gdb+bfd string pool? References: <3FA27C9B.1000702@redhat.com> <20031031151927.GA32700@nevyn.them.org> <3FA283A7.7080706@redhat.com> <20031031155102.GA1102@nevyn.them.org> <3FA29BDF.1000100@redhat.com> <20031031153157.GZ12344@sunsite.ms.mff.cuni.cz> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2003-10/txt/msg00352.txt.bz2 >>> Oh, you meant an _instance_, not a data structure. Sorry. > >> >> More specifically, a single instance. Instead of having something like >> a per-object file symbol bcache as was done with GDB, there would just >> be a single global bcache (and it would never shrink). > > > elf-strtab has a property which I'm not sure you really need in GDB, > as it slow things down. It attempts to do suffix merging, ie. if you have > p = "abcde" and q = "cde", r = "cde", s = "abcde" strings, > then p = "abcde", q = p + 2, r = q, s = p. Storing strings in a hashtable > is certainly cheaper for CPU time than this. As best I could tell, the suffix merging was being done as a separate pass so could be separated out? Andrew