From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier 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 16:25:59 -0400 Message-ID: References: <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> <87pqacrunj.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1336681632 2801 80.91.229.3 (10 May 2012 20:27:12 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 10 May 2012 20:27:12 +0000 (UTC) Cc: tomo@cx4a.org, Chong Yidong , schwab@linux-m68k.org, 10580@debbugs.gnu.org To: Dov Grobgeld Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu May 10 22:27:09 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 1SSZx6-0002Bo-Tz for geb-bug-gnu-emacs@m.gmane.org; Thu, 10 May 2012 22:27:09 +0200 Original-Received: from localhost ([::1]:33692 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SSZx6-0008Ry-1r for geb-bug-gnu-emacs@m.gmane.org; Thu, 10 May 2012 16:27:08 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:39983) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SSZx1-0008RO-Qi for bug-gnu-emacs@gnu.org; Thu, 10 May 2012 16:27:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SSZwz-000741-Ok for bug-gnu-emacs@gnu.org; Thu, 10 May 2012 16:27:03 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:53086) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SSZwz-00073x-LL for bug-gnu-emacs@gnu.org; Thu, 10 May 2012 16:27:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SSZx0-0007RX-71 for bug-gnu-emacs@gnu.org; Thu, 10 May 2012 16:27:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 10 May 2012 20:27:02 +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.133668157028544 (code B ref 10580); Thu, 10 May 2012 20:27:02 +0000 Original-Received: (at 10580) by debbugs.gnu.org; 10 May 2012 20:26:10 +0000 Original-Received: from localhost ([127.0.0.1]:47157 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SSZw9-0007QL-Vo for submit@debbugs.gnu.org; Thu, 10 May 2012 16:26:10 -0400 Original-Received: from ironport-out.teksavvy.com ([206.248.143.162]:36111) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SSZw7-0007Q8-Gw for 10580@debbugs.gnu.org; Thu, 10 May 2012 16:26:08 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApYIACxOgk9FpYsJ/2dsb2JhbABDuCMDgQyBCIIJAQEEAVYjBQsLNBIUGA0kiBwFC7Yni2GEeQSWfY1IgV2DAw X-IronPort-AV: E=Sophos;i="4.75,391,1330923600"; d="scan'208";a="179520886" Original-Received: from 69-165-139-9.dsl.teksavvy.com (HELO pastel.home) ([69.165.139.9]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 10 May 2012 16:26:00 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id E305F59015; Thu, 10 May 2012 16:25:59 -0400 (EDT) In-Reply-To: (Dov Grobgeld's message of "Thu, 10 May 2012 22:07:38 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (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:59921 Archived-At: > Here are the tests when using the the latest cvs gdb that yields a gdb > output file of about 800k. > Without gdb-get-source-file-list override: ~139s > With gdb-get-source-file-list override: ~125s > Thus it is clear that most of the time is taken just reading the string > into emacs. But doing find-file on the same file is almost instantaneous. Sounds like a perfect test case for the native elisp profiler (a prototype of which is at http://cx4a.org/hack/emacs-native-profiler.html, and hopefully it will mature over the summer since it's funded as a GSoC). Stefan