From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id DD4753857039; Tue, 1 Sep 2020 14:46:04 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DD4753857039 From: "tromey at sourceware dot org" To: gdb-prs@sourceware.org Subject: [Bug gdb/25703] set dwarf max-cache-age default of 5 is slow for inter-CU-reference binaries Date: Tue, 01 Sep 2020 14:46:04 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: tromey at sourceware dot org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gdb-prs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-prs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Sep 2020 14:46:05 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D25703 --- Comment #4 from Tom Tromey --- I had some other thoughts about this recently: 1. It seems to me that if a CU ever refers to a DIE in some PU, then gdb could process the abbrev table for that PU and keep it for the duration of psymtab reading. The idea here is that if there's one reference to a PU, there are probably more. Also, dwz tries to share abbrev tables, so caching like this could be a win that way as well. 2. In combination with 1, instead of reading all the partial DIEs for a PU when seeing a cross-unit reference, we could instead just read the exact DIE that is referred to. This might or might not be faster, depending on what all is referenced. --=20 You are receiving this mail because: You are on the CC list for the bug.=