GNU bug report logs - #13869
24.2; linum-mode slows emacs down

Previous Next

Package: emacs;

Reported by: Silviu Vlad Oprea <sopreain1 <at> gmail.com>

Date: Mon, 4 Mar 2013 16:51:02 UTC

Severity: normal

Tags: wontfix

Found in version 24.2

Done: Stefan Kangas <stefan <at> marxist.se>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 13869 in the body.
You can then email your comments to 13869 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#13869; Package emacs. (Mon, 04 Mar 2013 16:51:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Silviu Vlad Oprea <sopreain1 <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Mon, 04 Mar 2013 16:51:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Silviu Vlad Oprea <sopreain1 <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.2; Theme slows emacs down
Date: Mon, 04 Mar 2013 13:00:03 +0000
1. smooth-scroll
2. load-theme->adwaita
-> scrolling is extremel slow and jumpy


In GNU Emacs 24.2.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.20.1)
of 2013-01-27 on foo-laptop
Windowing system distributor `The X.Org Foundation', version 11.0.10706000
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_GB.utf8
value of $XMODIFIERS: nil
locale-coding-system: utf-8-unix
default enable-multibyte-characters: t

Major mode: Scala

Minor modes in effect:
global-linum-mode: t
linum-mode: t
global-semanticdb-minor-mode: t
global-semantic-idle-scheduler-mode: t
semantic-mode: t
global-ede-mode: t
ede-minor-mode: t
tooltip-mode: t
mouse-wheel-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
transient-mark-mode: t

Recent input:
<C-down> <down> <down> <down> <down> <down> <down>
<down> <down> <down> <down> <up> <up> <up> <up> <up>
<up> <up> <up> <up> <up> <up> <up> <up> <up> <up> <up>
<up> <up> <up> <up> <up> <up> <up> <up> <up> <up> <up>
<up> <up> <up> <up> <up> <up> <up> <up> <up> <up> <up>
<up> <up> <up> <up> <up> <up> <up> <up> <up> <up> <up>
<up> <up> <up> <up> <up> <up> <up> <up> <up> <up> <up>
<up> <up> <up> <down> <down> <down> <down> <down> C-x
3 <down> <down> <down> <down> <down> <down> <down>
<down> <down> <down> <down> <down> <down> <down> <up>
<up> <up> <up> <up> <up> <up> <up> <up> <up> <up> <up>
<up> <up> <up> <up> <up> <up> <up> <up> <up> <up> <up>
<up> <up> <up> <up> <up> <up> <up> <down> <down> <down>
<down> <down> <down> <down> <down> <down> <down> <down>
<down> <down> <down> <down> <down> <down> <down> <down>
<down> <down> <down> <down> <down> <down> <down> <down>
<down> <down> <down> <down> <down> <down> <down> <down>
<down> <down> <down> <down> <down> <down> <down> <down>
<down> <down> <down> <down> <down> <down> <down> <down>
<up> <up> <up> <up> <up> <up> <up> <up> <up> <up> <up>
<up> <up> <up> <up> <up> <up> <up> <up> <up> <up> <up>
<up> <up> <up> <up> <up> <up> <up> <up> <up> <up> <up>
<up> <up> <up> <up> <up> <up> <up> <up> <up> <up> <up>
<up> <up> <up> <up> <up> <up> <up> <up> <up> <up> <up>
<up> <up> <up> <up> <up> <up> <up> <down> <down> <down>
<down> <down> <down> M-x e m a c - s <backspace> <backspace>
s - r e <tab> <tab> <backspace> <backspace> <tab> <backspace>
<backspace> <backspace> <backspace> <backspace> <backspace>
- - SPC b u <backspace> <C-backspace> <C-backspace>
<C-backspace> <C-backspace> <C-backspace> - - b u g
<tab> <escape> <escape> <escape> M-x r e p o <tab>
r t <tab> e <backspace> <return>

Recent messages:
Making completion list...
scroll-down-command: Beginning of buffer [3 times]
line-move-visual: End of buffer [4 times]
line-move-visual: Beginning of buffer [28 times]
line-move-visual: End of buffer [5 times]
line-move-visual: Beginning of buffer [16 times]
Making completion list... [2 times]
Quit
Making completion list...
delete-backward-char: Text is read-only

Load-path shadows:
/home/foo/.emacs.d/plugins/ensime/elisp/fuzzy hides 
/home/foo/.emacs.d/plugins/auto-complete/fuzzy
/home/foo/.emacs.d/plugins/ensime/elisp/auto-complete hides 
/home/foo/.emacs.d/plugins/auto-complete/auto-complete
/home/foo/.emacs.d/plugins/ensime/elisp/popup hides 
/home/foo/.emacs.d/plugins/auto-complete/popup
/home/foo/.emacs.d/plugins/cedet/lisp/speedbar/loaddefs hides 
/home/foo/.emacs.d/plugins/cedet/lisp/eieio/loaddefs
/home/foo/.emacs.d/plugins/cedet/lisp/speedbar/loaddefs hides 
/home/foo/.emacs.d/plugins/cedet/lisp/cedet/loaddefs
/home/foo/.emacs.d/plugins/buffer-move/bs hides 
/usr/local/share/emacs/24.2/lisp/bs
/home/foo/.emacs.d/plugins/cedet/lisp/speedbar/loaddefs hides 
/usr/local/share/emacs/24.2/lisp/loaddefs
/home/foo/.emacs.d/plugins/cedet/lisp/eieio/chart hides 
/usr/local/share/emacs/24.2/lisp/emacs-lisp/chart
/home/foo/.emacs.d/plugins/cedet/lisp/eieio/eieio-opt hides 
/usr/local/share/emacs/24.2/lisp/emacs-lisp/eieio-opt
/home/foo/.emacs.d/plugins/cedet/lisp/eieio/eieio hides 
/usr/local/share/emacs/24.2/lisp/emacs-lisp/eieio
/home/foo/.emacs.d/plugins/cedet/lisp/eieio/eieio-datadebug hides 
/usr/local/share/emacs/24.2/lisp/emacs-lisp/eieio-datadebug
/home/foo/.emacs.d/plugins/cedet/lisp/eieio/eieio-custom hides 
/usr/local/share/emacs/24.2/lisp/emacs-lisp/eieio-custom
/home/foo/.emacs.d/plugins/cedet/lisp/eieio/eieio-base hides 
/usr/local/share/emacs/24.2/lisp/emacs-lisp/eieio-base
/home/foo/.emacs.d/plugins/cedet/lisp/eieio/eieio-speedbar hides 
/usr/local/share/emacs/24.2/lisp/emacs-lisp/eieio-speedbar

Features:
(shadow sort mail-extr emacsbug message format-spec rfc822 mml mml-sec
mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils
mailheader sendmail rfc2047 rfc2045 ietf-drums mail-utils
solarized-dark-theme vc-dispatcher vc-svn ede/maven2 ede/lein2 ede/ant
ede/cpp-root ede/java-root ede/jvm-base cedet-files rx
solarized-light-theme solarized-definitions color-theme-autoloads
ecb-layout-defs linum cus-start cus-load ido buffer-move windmove
smooth-scrolling ecb ecb-symboldef ecb-analyse ecb-compatibility
ecb-winman-support ecb-autogen autoload ecb-tod ecb-cycle ecb-eshell
ecb-help ecb-jde ecb-method-browser ecb-semantic ecb-file-browser
ecb-speedbar ecb-layout ecb-create-layout ecb-compilation
ecb-common-browser ecb-navigate ecb-mode-line ecb-face tree-buffer
ecb-upgrade ecb-cedet-wrapper ecb-util silentcomp ensime ensime-ui
ensime-semantic-highlight ensime-doc ensime-scalex url url-proxy
url-privacy url-expand url-methods url-history url-cookie url-util
url-parse auth-source gnus-util password-cache url-vars mm-util
mail-prsvr mailcap json ensime-search ensime-undo ensime-refactor
ensime-builder ensime-debug ensime-inf ensime-sbt ensime-comint-utils
ensime-auto-complete ensime-config hideshow pp thingatpt auto-complete
popup nav bs dired ack compile comint ansi-color scala-mode2 derived
scala-mode2-map scala-mode2-fontlock scala-mode2-indent
scala-mode2-paragraph scala-mode2-syntax regexp-opt scala-mode2-lib
semantic/bovine/gcc semantic/dep semantic/ia semantic/analyze/refs
semantic/senator semantic/db-find semantic/db-ref ring semantic/db-mode
semantic/idle working fame semantic-tag-folding cl
semantic/decorate/mode semantic/decorate pulse cedet-devel-load warnings
eieio-opt help-mode view find-func advice help-fns advice-preload
srecode/map srecode semantic/canned-configs semantic/ia-sb
semantic/analyze semantic/sort semantic/scope semantic/analyze/fcn
semantic/db semantic/ctxt semantic/format semantic/tag-ls semantic/find
semantic/util-modes semantic/util semantic semantic/tag semantic/lex
semantic/fw mode-local cedet-compat inversion ede/speedbar ede/files ede
ede/base ede/auto ede/source eieio-base eieio-speedbar speedbar sb-image
ezimage dframe easymenu assoc eieio-custom wid-edit cedet eieio byte-opt
bytecomp byte-compile cconv macroexp cedet-remove-builtin edmacro kmacro
tabbar easy-mmode package tabulated-list time-date tooltip ediff-hook
vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image
fringe lisp-mode register page menu-bar rfn-eshadow timer select
scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham
georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao
korean japanese hebrew greek romanian slovak czech european ethiopic
indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple
abbrev minibuffer loaddefs button faces cus-face files text-properties
overlay sha1 md5 base64 format env code-pages mule custom widget
hashtable-print-readable backquote make-network-process dbusbind
dynamic-setting font-render-setting move-toolbar gtk x-toolkit x
multi-tty emacs)





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#13869; Package emacs. (Mon, 04 Mar 2013 18:05:02 GMT) Full text and rfc822 format available.

Message #8 received at 13869 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Silviu Vlad Oprea <sopreain1 <at> gmail.com>
Cc: 13869 <at> debbugs.gnu.org
Subject: Re: bug#13869: 24.2; Theme slows emacs down
Date: Mon, 04 Mar 2013 20:03:38 +0200
> Date: Mon, 04 Mar 2013 13:00:03 +0000
> From: Silviu Vlad Oprea <sopreain1 <at> gmail.com>
> 
> 1. smooth-scroll

Please give more detail about this.  Did you start from "emacs -Q",
and if so, did you customize any of the smooth-scrolling.el's options?
Anyway, there's no command named smooth-scroll in smooth-scrolling.el,
perhaps I downloaded an incorrect package?  You didn't say where to
find it and how to activate it.

> 2. load-theme->adwaita
> -> scrolling is extremel slow and jumpy

Just by doing this:

 emacs -Q
 M-x load-file RET smooth-scrolling.el RET
 C-x C-f src/xdisp.c
 M-x load-theme RET adwaita RET

I don't see any significant degradation in scroll quality.  How did
you scroll (with which keys)?  In what major mode and with which file?
Does this happen in every mode (including Fundamental) and with every
file?

Thanks.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#13869; Package emacs. (Mon, 04 Mar 2013 20:23:02 GMT) Full text and rfc822 format available.

Message #11 received at 13869 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Silviu Vlad Oprea <sopreain1 <at> gmail.com>
Cc: 13869 <at> debbugs.gnu.org
Subject: Re: bug#13869: 24.2; Theme slows emacs down
Date: Mon, 04 Mar 2013 22:21:36 +0200
> Date: Mon, 04 Mar 2013 19:15:36 +0000
> From: Silviu Vlad Oprea <sopreain1 <at> gmail.com>
> 
> On 04/03/13 18:54, Eli Zaretskii wrote:
> >> Date: Mon, 04 Mar 2013 18:40:53 +0000
> >> From: Silviu Vlad Oprea <sopreain1 <at> gmail.com>
> >>
> >> Turns out it's because linum-mode. Once I enable it (M-x linum-mode
> >> RET), it lags every 2 seconds when scrolling, and it's very frustrating.
> >> The same happens with tabbar-mode (separately; If I enable both
> >> linum-mode and tabbar-mode, it's even worse).
> > With linum-mode, I see a 3-fold increase in CPU usage, but Emacs can
> > still keep up.  What CPU do you have there?
> Now fancy at all. Celeron(R) Dual-Core CPU T3000  @ 1.80GHz.

Could be why you see the problem, while I don't.

> > linum-mode kills many potential redisplay optimizations, so it's a
> > small wonder it makes the display engine work harder.
> Any idea how I could get the same effect (line numbers) w/o the lag? Is 
> there a better mode?

Maybe try nlinum.el from ELPA.




Changed bug title to '24.2; linum-mode slows emacs down' from '24.2; Theme slows emacs down' Request was from Noam Postavsky <npostavs <at> users.sourceforge.net> to control <at> debbugs.gnu.org. (Sun, 26 Jun 2016 16:15:01 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#13869; Package emacs. (Fri, 21 Aug 2020 14:07:01 GMT) Full text and rfc822 format available.

Message #16 received at 13869 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefan <at> marxist.se>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 13869 <at> debbugs.gnu.org, Silviu Vlad Oprea <sopreain1 <at> gmail.com>
Subject: Re: bug#13869: 24.2; Theme slows emacs down
Date: Fri, 21 Aug 2020 07:06:15 -0700
tags 13869 + wontfix
close 13869
thanks

Eli Zaretskii <eliz <at> gnu.org> writes:

>> Date: Mon, 04 Mar 2013 19:15:36 +0000
>> From: Silviu Vlad Oprea <sopreain1 <at> gmail.com>
>>
>> On 04/03/13 18:54, Eli Zaretskii wrote:
>> >> Date: Mon, 04 Mar 2013 18:40:53 +0000
>> >> From: Silviu Vlad Oprea <sopreain1 <at> gmail.com>
>> >>
>> >> Turns out it's because linum-mode. Once I enable it (M-x linum-mode
>> >> RET), it lags every 2 seconds when scrolling, and it's very frustrating.
>> >> The same happens with tabbar-mode (separately; If I enable both
>> >> linum-mode and tabbar-mode, it's even worse).
>> > With linum-mode, I see a 3-fold increase in CPU usage, but Emacs can
>> > still keep up.  What CPU do you have there?
>> Now fancy at all. Celeron(R) Dual-Core CPU T3000  @ 1.80GHz.
>
> Could be why you see the problem, while I don't.
>
>> > linum-mode kills many potential redisplay optimizations, so it's a
>> > small wonder it makes the display engine work harder.
>> Any idea how I could get the same effect (line numbers) w/o the lag? Is
>> there a better mode?
>
> Maybe try nlinum.el from ELPA.

(No further updates within 7 years.)

The solution here is to use nlinum.el or even better the more recent
display-line-numbers-mode.

I'm therefore closing this bug report.  If anyone disagrees, feel free
to reopen.

Best regards,
Stefan Kangas




Added tag(s) wontfix. Request was from Stefan Kangas <stefan <at> marxist.se> to control <at> debbugs.gnu.org. (Fri, 21 Aug 2020 14:07:03 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 13869 <at> debbugs.gnu.org and Silviu Vlad Oprea <sopreain1 <at> gmail.com> Request was from Stefan Kangas <stefan <at> marxist.se> to control <at> debbugs.gnu.org. (Fri, 21 Aug 2020 14:07:03 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 19 Sep 2020 11:24:08 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 330 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.