From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 98220385660D; Tue, 6 Jun 2023 09:52:43 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 98220385660D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1686045163; bh=cuKCE6sTGd7zTE481TKRQ8+sXPx9BO66sXv4zc2Y3Bg=; h=From:To:Subject:Date:From; b=Yid9/iWzqdGye5ZKAeB56YrG1xDHltc0pz+iYvJwkAs1FB6n2J/5JOzKwqDEZFRqF wk+MA/ilwXnQujUilHLlMD8psfqc8ekvpZ5bU3CiiGMojOdxjpeNFA+G0gUo/rT86E a8q/zihtU/dQx5usituUlSzDFOROCuWqbcTI90qM= From: "dmitry.neverov at jetbrains dot com" To: gdb-prs@sourceware.org Subject: [Bug symtab/30520] New: Slow lookup_symbol_in_objfile Date: Tue, 06 Jun 2023 09:52:42 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: symtab X-Bugzilla-Version: 13.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dmitry.neverov at jetbrains dot com X-Bugzilla-Status: UNCONFIRMED 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created Message-ID: 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 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D30520 Bug ID: 30520 Summary: Slow lookup_symbol_in_objfile Product: gdb Version: 13.1 Status: UNCONFIRMED Severity: normal Priority: P2 Component: symtab Assignee: unassigned at sourceware dot org Reporter: dmitry.neverov at jetbrains dot com Target Milestone: --- Created attachment 14919 --> https://sourceware.org/bugzilla/attachment.cgi?id=3D14919&action=3Ded= it gdb.log I'm facing a performance problem in `-var-list-children` gdb/mi command in = gdb 13 built on commit d05c047a71374f533ed9261c6f44707285f1b302 but also earlier gdb 13 versions. It seems like it has to do with slow lookup_symbol_in_objf= ile. Most lookups are fast, but one takes around a minute to finish for 449Mb sh= ared object: 2023-06-06 10:54:51,286 <&" [symbol-lookup] lookup_symbol_in_objfile: lookup_symbol_in_objfile (_pcbnew.kiface, GLOBAL_BLOCK, wxObjectDataPtr, VAR_DOMAIN)\n" 2023-06-06 10:55:50,418 <&" [symbol-lookup] lookup_symbol_in_objfile: lookup_symbol_in_objfile (...) =3D NULL\n" Even though a lookup for another symbol in the same session before was fast: 2023-06-06 10:54:36,910 <&" [symbol-lookup] lookup_symbol_in_objfile: lookup_symbol_in_objfile (_pcbnew.kiface, GLOBAL_BLOCK, wxWindow, VAR_DOMAIN)\n" 2023-06-06 10:54:36,910 <&" [symbol-lookup] lookup_symbol_in_objfile: lookup_symbol_in_objfile (...) =3D NULL\n" What could cause such a slowdown? Are there any way to work that around, e.= g. by trading memory for speed? --=20 You are receiving this mail because: You are on the CC list for the bug.=