From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id ABEE03839C56; Fri, 13 May 2022 20:56:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org ABEE03839C56 From: "tromey at sourceware dot org" To: gdb-prs@sourceware.org Subject: [Bug symtab/29105] new DWARF reader still slow Date: Fri, 13 May 2022 20:56:35 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: symtab X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: tromey at sourceware dot org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: tromey 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: Fri, 13 May 2022 20:56:35 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D29105 --- Comment #1 from Tom Tromey --- I have a patch to "shard" the index. The idea is to do each finalization step locally in a given index, and never combine them into the cooked vector. This seems better for performance, at least from a time-to-first-prompt perspective. And, the memory overhead doesn't seem so bad, either. Before: (gdb) file /tmp/gdb 2022-05-13 14:54:41.981 - command started Reading symbols from /tmp/gdb... 2022-05-13 14:54:42.391 - command finished Command execution time: 2.202096 (cpu), 0.410121 (wall) Space used: 10010624 (+6594560 for this command) After: (gdb) file /tmp/gdb 2022-05-13 14:54:19.907 - command started Reading symbols from /tmp/gdb... 2022-05-13 14:54:20.125 - command finished Command execution time: 1.025581 (cpu), 0.218469 (wall) Space used: 10014720 (+6598656 for this command) --=20 You are receiving this mail because: You are on the CC list for the bug.=