From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Linck Newsgroups: gmane.emacs.bugs Subject: bug#3032: Major performance problem Date: Fri, 17 Apr 2009 14:31:16 -0600 Message-ID: <49E8E714.2070605@absolute-performance.com> Reply-To: Michael Linck , 3032@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1240006426 21517 80.91.229.12 (17 Apr 2009 22:13:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 17 Apr 2009 22:13:46 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Apr 18 00:15:05 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LuwKp-0007fE-Ug for geb-bug-gnu-emacs@m.gmane.org; Sat, 18 Apr 2009 00:15:00 +0200 Original-Received: from localhost ([127.0.0.1]:53966 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LuwJR-0006cM-1c for geb-bug-gnu-emacs@m.gmane.org; Fri, 17 Apr 2009 18:13:33 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Luuuo-0005mg-M2 for bug-gnu-emacs@gnu.org; Fri, 17 Apr 2009 16:44:02 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Luuuk-0005kJ-EO for bug-gnu-emacs@gnu.org; Fri, 17 Apr 2009 16:44:02 -0400 Original-Received: from [199.232.76.173] (port=40255 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Luuuk-0005k1-3m for bug-gnu-emacs@gnu.org; Fri, 17 Apr 2009 16:43:58 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:39389) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Luuui-0005Qb-UE for bug-gnu-emacs@gnu.org; Fri, 17 Apr 2009 16:43:57 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n3HKhpcf004405; Fri, 17 Apr 2009 13:43:53 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n3HKZ4VU001888; Fri, 17 Apr 2009 13:35:04 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Michael Linck Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Fri, 17 Apr 2009 20:35:04 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: report 3032 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.12400002971587 (code B ref -1); Fri, 17 Apr 2009 20:35:04 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 17 Apr 2009 20:31:37 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n3HKVWgm001580 for ; Fri, 17 Apr 2009 13:31:34 -0700 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Luuii-0000Gl-8s for bug-gnu-emacs@gnu.org; Fri, 17 Apr 2009 16:31:32 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Luuic-0000Fc-86 for bug-gnu-emacs@gnu.org; Fri, 17 Apr 2009 16:31:30 -0400 Original-Received: from [199.232.76.173] (port=45821 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Luuic-0000FZ-2j for bug-gnu-emacs@gnu.org; Fri, 17 Apr 2009 16:31:26 -0400 Original-Received: from mx02.den.sysshep.com ([66.35.32.228]:54022 helo=fort-mx02.den.api.local) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Luuib-0003TE-JV for bug-gnu-emacs@gnu.org; Fri, 17 Apr 2009 16:31:25 -0400 Original-Received: from mike-desktop.boulder.api.local ([64.15.110.115]) (authenticated bits=0) by fort-mx02.den.api.local (8.13.1/8.13.1) with ESMTP id n3HKVG73008602 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 17 Apr 2009 14:31:21 -0600 User-Agent: Thunderbird 2.0.0.21 (X11/20090320) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Fri, 17 Apr 2009 16:44:02 -0400 X-Mailman-Approved-At: Fri, 17 Apr 2009 18:12:05 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:27286 Archived-At: Please write in English if possible, because the Emacs maintainers usually do not have translators to read other languages for them. Your bug report will be posted to the bug-gnu-emacs@gnu.org mailing list, and to the gnu.emacs.bug news group. Please describe exactly what actions triggered the bug and the precise symptoms of the bug: If you make a C++ header and try to define a long string, you can bring emacs to a grinding halt. The scenario is as follows: I need a test header to return the equivalent of some lengthy http resources for unit testing and I can't have file system interaction, so I have to hard code the scenarios in a variety of header files for the unit tests. For each resource, I need a string constant. So I have to copy the body of the resource into the cxx header. Then backslash escape the quotes, then replace newlines with '\n"[newline]"' and then auto indent the buffer. For a resource that is *merely* 8000 lines (that 8 thousand, not eight trillion) the simple quote escaping (replace '"' with '\"') takes more than 5-10 minutes, the newlines (no more than 1 per line) takes 5-10 minutes also. This BUG however, is filed because the indentation has now been in progress for over 3 hours! It was 37 percent complete an hour ago, now it's 40% complete. That emacs instance is using up a entire CPU core, and the process of indenting a bit of code seems to be slowing down hard as it goes. 37% the first 2 hours, 3% the following hour. I expect this *maybe* finish over the weekend. I've been using emacs for at least 10 years, and this is shocking. Another minor gripe is that I tried having emacs send this bug previously, but I had to decide to send it again manually, because it gives no indication of whether the bug e-mail was actually sent or not. Anyway, in my professional opinion as a developer, it's time to put a stop to any "feature" updates for e-macs and hunker down with some optimizations. emacs version 22.3.1 Thanks, guys. If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. If you would like to further debug the crash, please read the file /usr/share/emacs/22.3/etc/DEBUG for instructions. In GNU Emacs 22.3.1 (i386-redhat-linux-gnu, GTK+ Version 2.14.7) of 2009-02-09 on x86-5.fedora.phx.redhat.com Windowing system distributor `The X.Org Foundation', version 11.0.10503000 configured using `configure '--build=i386-redhat-linux-gnu' '--host=i386-redhat-linux-gnu' '--target=i386-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/usr/com' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--with-x-toolkit=gtk' 'build_alias=i386-redhat-linux-gnu' 'host_alias=i386-redhat-linux-gnu' 'target_alias=i386-redhat-linux-gnu' 'CFLAGS=-DMAIL_USE_LOCKF -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US.UTF-8 locale-coding-system: utf-8 default-enable-multibyte-characters: t Major mode: C/lh Minor modes in effect: tooltip-mode: t tool-bar-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t unify-8859-on-encoding-mode: t utf-translate-cjk-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: identity abbrev-mode: t Recent input: SPC SPC SPC SPC SPC SPC e m a c s SPC v e r s i o n SPC i s SPC 2 2 . 3 . 1 1 C-c C-c y e s M-x r e p o r t - e m a b c s - b u g Recent messages: Auto-saving...done Auto-saving...done Auto-saving...done Auto-saving...done Auto-saving...done Auto-saving...done Auto-saving...done Auto-saving...done byte-code: Beginning of buffer [7 times] Sending...done