From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27685 invoked by alias); 4 Dec 2014 19:24:32 -0000 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 Received: (qmail 27674 invoked by uid 89); 4 Dec 2014 19:24:31 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.7 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mail-vc0-f173.google.com Received: from mail-vc0-f173.google.com (HELO mail-vc0-f173.google.com) (209.85.220.173) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Thu, 04 Dec 2014 19:24:31 +0000 Received: by mail-vc0-f173.google.com with SMTP id im17so8158999vcb.4 for ; Thu, 04 Dec 2014 11:24:28 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=5dFZ8uxJJcRNN/aGSgHX/v9/hNdDa+zIVKI9h5VCwAY=; b=H5twBsQ1I0A/IbMlmdJ1JMpJeO+4pwFganawlVuW8xi6C4WcQxtKofCLcq7pSB5nT8 yRxsABqdqv2Ilab4a09aFcJU9UzMR4I/D7DwxiZ3f0aOA55JPq1EgVWEnp3X13Xoz9bY XqZB/gSgp3oSm6hINK8TmIx2o9robHRcc5l5hTTw1zLkNd6T1q0maO9vdDQQwKXV47nI 6bkzFrx4OQJjyO9ZIIUKoUYkzvk77ycwV1AYd3YWcireqPnZ3MLo9uxQU/lKmU9qRfL8 AE2o58QEpFuv1ZlH8UTr3wD7sKXkrqE/j8KA8UDh0+c4UigL7HPSU8KBKvSsy0cYZ1NO y07g== X-Gm-Message-State: ALoCoQm/MAAP6OGxj3F1T8V69eLB6AGBY9n4AurqeNQbcyiyG+Hjojaljrzt2jCzGQIxuhU763bP MIME-Version: 1.0 X-Received: by 10.52.29.84 with SMTP id i20mr5015071vdh.1.1417721068661; Thu, 04 Dec 2014 11:24:28 -0800 (PST) Received: by 10.52.114.101 with HTTP; Thu, 4 Dec 2014 11:24:28 -0800 (PST) In-Reply-To: <20141204191559.GA10848@host2.jankratochvil.net> References: <20141204191559.GA10848@host2.jankratochvil.net> Date: Thu, 04 Dec 2014 19:24:00 -0000 Message-ID: Subject: Re: [RFC] symbol lookup cache From: Doug Evans To: Jan Kratochvil Cc: gdb-patches , Joel Brobecker Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2014-12/txt/msg00110.txt.bz2 On Thu, Dec 4, 2014 at 11:15 AM, Jan Kratochvil wrote: > On Mon, 01 Dec 2014 09:23:49 +0100, Doug Evans wrote: >> ..gdb_index helps speed things up for one objfile, >> but when there are 100s (or 1000s) of shared >> libraries, symbol lookup can still take awhile, >> even with .gdb_index. >> [I'm setting aside a planned change to basic >> symbol lookup to use the index better. >> We'll still, I think, want a cache even >> with that change.] > > While I have no numbers personally I do not think GDB would still need a cache > after that change. > > "Accelerate lookup_symbol_aux_objfile 85x" is so fast in a fraction of second > because it traverses 146426 symtabs. So 146426 is OK but 1979341 was not (it > was in some way more than 1979341 before you refactored symtabs). Just to make sure I understand correctly, the 85x is dwz-specific, right?