From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.bugs Subject: bug#10580: 24.0.92; gdb initialization takes more than one minute at 100% CPU Date: Thu, 10 May 2012 22:13:36 +0800 Message-ID: <87pqacrunj.fsf@gnu.org> References: <87havtvpeb.fsf@gnu.org> <874nrsem67.fsf@gnu.org> <874nrswme9.fsf@gnu.org> <87zk9kv75l.fsf@gnu.org> <87mx5j6pqs.fsf@gnu.org> <877gwm3ajn.fsf@gnu.org> <83txzq1s4y.fsf@gnu.org> <837gwl1ckx.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1336659304 9234 80.91.229.3 (10 May 2012 14:15:04 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 10 May 2012 14:15:04 +0000 (UTC) Cc: 10580@debbugs.gnu.org, schwab@linux-m68k.org To: Dov Grobgeld Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu May 10 16:15:03 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SSU8z-0003GP-4A for geb-bug-gnu-emacs@m.gmane.org; Thu, 10 May 2012 16:15:01 +0200 Original-Received: from localhost ([::1]:48183 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SSU8y-00087X-BP for geb-bug-gnu-emacs@m.gmane.org; Thu, 10 May 2012 10:15:00 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:37280) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SSU8q-00086y-Ba for bug-gnu-emacs@gnu.org; Thu, 10 May 2012 10:14:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SSU8i-0003nU-Ku for bug-gnu-emacs@gnu.org; Thu, 10 May 2012 10:14:51 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:43906) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SSU8i-0003n6-Hy for bug-gnu-emacs@gnu.org; Thu, 10 May 2012 10:14:44 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SSUAw-00064z-0W for bug-gnu-emacs@gnu.org; Thu, 10 May 2012 10:17:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Chong Yidong Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 10 May 2012 14:17:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10580 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 10580-submit@debbugs.gnu.org id=B10580.133665937023301 (code B ref 10580); Thu, 10 May 2012 14:17:01 +0000 Original-Received: (at 10580) by debbugs.gnu.org; 10 May 2012 14:16:10 +0000 Original-Received: from localhost ([127.0.0.1]:44940 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SSUA5-00063m-Qy for submit@debbugs.gnu.org; Thu, 10 May 2012 10:16:10 -0400 Original-Received: from fencepost.gnu.org ([208.118.235.10]:58981 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SSUA2-00063e-RL for 10580@debbugs.gnu.org; Thu, 10 May 2012 10:16:07 -0400 Original-Received: from cm162.gamma80.maxonline.com.sg ([202.156.80.162]:41142 helo=ulysses) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1SSU7m-0008NH-1d; Thu, 10 May 2012 10:13:46 -0400 In-Reply-To: (Dov Grobgeld's message of "Thu, 10 May 2012 09:00:49 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.96 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:59907 Archived-At: Dov Grobgeld writes: > Still, it bothering me the fact that the above perl expression parses > the gdb output in a fraction of a second, (0.01s user time) whereas > gdb-mi.el takes more than 40s. I would also like to learn more about where the bottleneck is. Could you do the following: M-: (require 'gdb-mi) RET M-: (defun gdb-get-source-file-list () nil) RET then run M-x gdb as usual, and see if that makes any difference in performance? Leave gdb-create-source-file-list set at t. (The above steps cause gdb-mi to issue the -file-list-exec-source-files command and read the output, as usual, but skip parsing the output into the source file list.)