From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.bugs Subject: bug#10539: 24.0.92; low display-time-interval makes Emacs slow Date: Wed, 18 Jan 2012 02:52:03 +0100 Message-ID: <87zkdl93r0.fsf@web.de> Reply-To: michael_heerdegen@web.de NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1326851468 5496 80.91.229.12 (18 Jan 2012 01:51:08 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 18 Jan 2012 01:51:08 +0000 (UTC) To: 10539@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jan 18 02:51:04 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RnKg4-0003TM-2d for geb-bug-gnu-emacs@m.gmane.org; Wed, 18 Jan 2012 02:51:04 +0100 Original-Received: from localhost ([::1]:51995 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RnKg3-0005si-F6 for geb-bug-gnu-emacs@m.gmane.org; Tue, 17 Jan 2012 20:51:03 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:48546) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RnKg0-0005sb-LB for bug-gnu-emacs@gnu.org; Tue, 17 Jan 2012 20:51:01 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RnKfz-0008AZ-Jl for bug-gnu-emacs@gnu.org; Tue, 17 Jan 2012 20:51:00 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:39344) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RnKfz-0008AD-Hx for bug-gnu-emacs@gnu.org; Tue, 17 Jan 2012 20:50:59 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1RnKh0-0002EG-1N for bug-gnu-emacs@gnu.org; Tue, 17 Jan 2012 20:52:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Michael Heerdegen Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 18 Jan 2012 01:52:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 10539 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.13268515188557 (code B ref -1); Wed, 18 Jan 2012 01:52:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 18 Jan 2012 01:51:58 +0000 Original-Received: from localhost ([127.0.0.1]:34017 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RnKgw-0002Dy-FX for submit@debbugs.gnu.org; Tue, 17 Jan 2012 20:51:58 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:51110) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RnKgu-0002Dp-7u for submit@debbugs.gnu.org; Tue, 17 Jan 2012 20:51:57 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RnKfs-00087J-5U for submit@debbugs.gnu.org; Tue, 17 Jan 2012 20:50:53 -0500 Original-Received: from lists.gnu.org ([140.186.70.17]:55842) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RnKfs-00087F-2f for submit@debbugs.gnu.org; Tue, 17 Jan 2012 20:50:52 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:48476) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RnKfq-0005sA-Jy for bug-gnu-emacs@gnu.org; Tue, 17 Jan 2012 20:50:52 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RnKfp-00086m-F9 for bug-gnu-emacs@gnu.org; Tue, 17 Jan 2012 20:50:50 -0500 Original-Received: from fmmailgate02.web.de ([217.72.192.227]:53219) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RnKfp-00086Z-2q for bug-gnu-emacs@gnu.org; Tue, 17 Jan 2012 20:50:49 -0500 Original-Received: from moweb001.kundenserver.de (moweb001.kundenserver.de [172.19.20.114]) by fmmailgate02.web.de (Postfix) with ESMTP id D526E1BFDEB88 for ; Wed, 18 Jan 2012 02:50:42 +0100 (CET) Original-Received: from snow ([89.204.138.21]) by smtp.web.de (mrweb001) with ESMTPA (Nemesis) id 0MV4xx-1SAlCO1dan-00ZC5s; Wed, 18 Jan 2012 02:50:41 +0100 X-Provags-ID: V02:K0:O8gU1XcodJPYWRT4kz09dHvmUGgvsm+5ULA581vifSt +1DE/DlfBcO8vJfw6ojZFmLfhQNuKOcKJ5q38t/cWFmr7U7y55 AI4q6sJxdt030ZU2/+Q9224hNA9ZA8p05j3Aoq7nTbEAhSuKeX i461srpCH8VB03TnHsfwlrPNwYUoMmJ3SoYM+RUq+AJvSKOykH ttO8q0NcKzOmcVM7hOJQGc+bhgRfBbEb4rWP1WsEcM= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4-2.6 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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:55835 Archived-At: Hello, in emacs -Q, set `display-time-interval' to 1 and enable `display-time-mode'. The docstring of `display-time-interval' says "Seconds between updates of time in the mode line.". Ok, fine. The doc of `display-time-string-forms' includes an example which makes `display-time-mode' show seconds. So, the user may think setting `display-time-interval' to 1 is a good idea. But it is currently not, on the contrary. First of all, `display-time-update' is a long, complex function. Running only its calculations every second consumes some percent CPU by itself. Second, the doc of `display-time-update' says Update the display-time info for the mode line. However, don't redisplay right now. But it _does_ redisplay, it calls `force-mode-line-update' explicitly at the end of the code! If I redefine `display-time-update' so that it doesn't call `force-mode-line-update', the update of the time in the mode-line surprisingly still works, I get an update every second. So, maybe the call to `force-mode-line-update' can be removed. Now I disable global font lock and such CPU eating minor mode stuff. I visit my ~/.newsrc.eld which has 647k. My CPU consumption gets nearly 100%, it takes several seconds until q (`View-quit') gets processed. If I visit that file with `display-time-mode' off, that doesn't happen. So, at the end, you could try to make `display-time-mode' more effective. If `display-time-update' does redisplay, then the doc should say so. And if we can't improve things, then the docstring of `display-time-interval' should say that low values are deprecated because they decrease Emacs' performance. Thanks, Michael. In GNU Emacs 24.0.92.1 (i486-pc-linux-gnu, GTK+ Version 3.2.3) of 2012-01-11 on zelenka, modified by Debian (emacs-snapshot package, version 1:20120111-1) Windowing system distributor `The X.Org Foundation', version 11.0.11102902 configured using `configure '--build' 'i486-linux-gnu' '--host' 'i486-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs-snapshot:/etc/emacs:/usr/local/share/emacs/24.0.92/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.0.92/site-lisp:/usr/share/emacs/site-lisp' '--without-compress-info' '--with-crt-dir=/usr/lib/i386-linux-gnu/' '--with-x=yes' '--with-x-toolkit=gtk3' '--with-imagemagick=yes' 'build_alias=i486-linux-gnu' 'host_alias=i486-linux-gnu' 'CFLAGS=-DDEBIAN -DSITELOAD_PURESIZE_EXTRA=5000 -g -O2'' Important settings: value of $LC_ALL: de_DE.utf8 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: C value of $LANG: de_DE.utf8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default enable-multibyte-characters: t