public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug symtab/30520] New: Slow lookup_symbol_in_objfile
@ 2023-06-06  9:52 dmitry.neverov at jetbrains dot com
  2023-06-06 11:39 ` [Bug symtab/30520] " dmitry.neverov at jetbrains dot com
                   ` (17 more replies)
  0 siblings, 18 replies; 19+ messages in thread
From: dmitry.neverov at jetbrains dot com @ 2023-06-06  9:52 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=30520

            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=14919&action=edit
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_objfile.
Most lookups are fast, but one takes around a minute to finish for 449Mb shared
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 (...) = 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 (...) = NULL\n"

What could cause such a slowdown? Are there any way to work that around, e.g.
by trading memory for speed?

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2024-05-17 14:50 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-06  9:52 [Bug symtab/30520] New: Slow lookup_symbol_in_objfile dmitry.neverov at jetbrains dot com
2023-06-06 11:39 ` [Bug symtab/30520] " dmitry.neverov at jetbrains dot com
2023-06-06 11:41 ` dmitry.neverov at jetbrains dot com
2023-06-06 19:51 ` tromey at sourceware dot org
2023-06-07  8:38 ` sam at gentoo dot org
2023-06-07  9:50 ` dmitry.neverov at jetbrains dot com
2023-06-09  8:52 ` dmitry.neverov at jetbrains dot com
2023-11-06 10:45 ` dmitry.neverov at jetbrains dot com
2023-11-30 17:07 ` tromey at sourceware dot org
2023-12-01 20:28 ` tromey at sourceware dot org
2024-01-19 16:52 ` tromey at sourceware dot org
2024-01-20  8:36 ` sam at gentoo dot org
2024-01-30 11:51 ` josh.cottingham at linaro dot org
2024-01-30 11:52 ` josh.cottingham at linaro dot org
2024-02-15 17:02 ` tromey at sourceware dot org
2024-02-15 17:05 ` tromey at sourceware dot org
2024-05-10 22:06 ` brobecker at gnat dot com
2024-05-17 14:49 ` cvs-commit at gcc dot gnu.org
2024-05-17 14:50 ` tromey at sourceware dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).