public inbox for gdb-prs@sourceware.org help / color / mirror / Atom feed
From: "jan.kratochvil at redhat dot com" <sourceware-bugzilla@sourceware.org> To: gdb-prs@sourceware.org Subject: [Bug gdb/12332] Provide efficient source lookup for use by IDE Date: Fri, 25 Feb 2011 22:56:00 -0000 [thread overview] Message-ID: <bug-12332-4717-vhQ6DNiGln@http.sourceware.org/bugzilla/> (raw) In-Reply-To: <bug-12332-4717@http.sourceware.org/bugzilla/> http://sourceware.org/bugzilla/show_bug.cgi?id=12332 Jan Kratochvil <jan.kratochvil at redhat dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jan.kratochvil at redhat | |dot com --- Comment #1 from Jan Kratochvil <jan.kratochvil at redhat dot com> 2011-02-25 22:56:20 UTC --- I (briefly) read through the Eclipse Bug but I do not see any indication the filesystem lookup would be slow. In fact since Linux kernel dcache (linux-2.1.x or so) any pathname lookups are blazingly fast: find $PWD -type f|tr -cd /|wc -c = 279751 = directory components for lookup find $PWD -type f|wc -l = 26239 = files = number of breakpoints time sh -c 'find $PWD -type f|xargs /bin/ls|wc -l' real 0m0.903s = the overhead of any lookups is really negligible [ kernel-debug-2.6.35.11-83.fc14.x86_64, i7-920, ext3 fs, second run ] If you mean slowness on the first run (and on the second run it is already fast) then it is by the disk access. But not looking up the leading directories would not help it as those are already in dcache even in such case. I would rather bet the slowness is in GDB itself, it has problems handling 1000+ breakpoints even on high-end hardware. I rather did not expect anyone would use so many breakpoints. I already did one breakpoints performance improvement which made the 1000 breakpoints case acceptable again (although it is still far from perfect): http://sourceware.org/ml/gdb-patches/2009-10/msg00289.html I would like to see some oprofile or gprof results first before deciding which part to fix. -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
next prev parent reply other threads:[~2011-02-25 22:56 UTC|newest] Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top 2010-12-17 13:34 [Bug gdb/12332] New: " oss.sprigogin at gmail dot com 2011-02-25 22:56 ` jan.kratochvil at redhat dot com [this message] 2011-02-28 4:24 ` [Bug gdb/12332] " sprigogin at google dot com 2011-03-11 21:03 ` marc.khouzam at ericsson dot com 2011-03-11 21:07 ` marc.khouzam at ericsson dot com 2012-04-16 17:49 ` dje at google dot com
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-12332-4717-vhQ6DNiGln@http.sourceware.org/bugzilla/ \ --to=sourceware-bugzilla@sourceware.org \ --cc=gdb-prs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).