[Bug 1206671] New: gdb: TAB completion in C++ programs could be faster
http://bugzilla.opensuse.org/show_bug.cgi?id=1206671 Bug ID: 1206671 Summary: gdb: TAB completion in C++ programs could be faster Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: x86-64 OS: Linux Status: NEW Severity: Normal Priority: P5 - None Component: Development Assignee: martin.liska@suse.com Reporter: jengelh@inai.de QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- # zypper in gzdoom gzdoom-debuginfo gzdoom-debugsource $ ldd /usr/bin/gzdoom | wc -l 72 $ nm /usr/lib/debug/usr/bin/gzdoom.debug | wc -l 34550 $ unset DEBUGINFOD_URLS $ gdb /usr/bin/gzdoom // without issuing gdb "r" (gdb) b <TAB><TAB> // This is instant, which I would not have expected Display all $max-completions possibilites? (y or n) (gdb) b AA<TAB> // This takes about 2 seconds on a i7-1135G7 CPU - and IMO that could be better (gdb) b AActor::<TAB><TAB> // another 2 seconds go by Display all 123 possibilities? (y or n) It feels like gdb does not have a std::map-like index over the names (because that should allow for logarithmic lookup as well as lower_bound and upper_bound on the available names). -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1206671 http://bugzilla.opensuse.org/show_bug.cgi?id=1206671#c1 Martin Li��ka <martin.liska@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |tdevries@suse.com --- Comment #1 from Martin Li��ka <martin.liska@suse.com> --- @Tom: Can you please take a look if it's something you are working on? About the symbol lookup. You're very likely speaking about the gdb index format which is something that can rapidly improve the speed of lookup. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1206671 http://bugzilla.opensuse.org/show_bug.cgi?id=1206671#c2 --- Comment #2 from Martin Li��ka <martin.liska@suse.com> --- @Tom: PING -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@suse.com