GNU bug report logs - #40007
28.0.50; Emacs gets very slow when displaying a long line

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Jan Synacek <jsynacek@HIDDEN>; merged with #3219, #4123, #9589, #13675, #15555, #18530, #24523, #30457; dated Tue, 10 Mar 2020 09:49:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Merged 3219 4123 9589 13675 15555 18530 24523 30457 40007. Request was from Eli Zaretskii <eliz@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 40007 <at> debbugs.gnu.org:


Received: (at 40007) by debbugs.gnu.org; 10 Mar 2020 14:40:19 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Mar 10 10:40:19 2020
Received: from localhost ([127.0.0.1]:53054 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1jBg3P-0007uo-5Z
	for submit <at> debbugs.gnu.org; Tue, 10 Mar 2020 10:40:19 -0400
Received: from eggs.gnu.org ([209.51.188.92]:57342)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>)
 id 1jBg3N-0007uW-CY; Tue, 10 Mar 2020 10:40:17 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:36981)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1jBg3I-0002Hs-2m; Tue, 10 Mar 2020 10:40:12 -0400
Received: from [176.228.60.248] (port=1144 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1jBg3H-0006JF-DX; Tue, 10 Mar 2020 10:40:11 -0400
Date: Tue, 10 Mar 2020 16:40:12 +0200
Message-Id: <831rq0b7eb.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Jan Synacek <jsynacek@HIDDEN>
In-Reply-To: <m6fmu8oh76f.fsf@HIDDEN> (message from Jan
 Synacek on Tue, 10 Mar 2020 10:48:24 +0100)
Subject: Re: bug#40007: 28.0.50;
 Emacs gets very slow when displaying a long line
References: <m6fmu8oh76f.fsf@HIDDEN>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 40007
Cc: 40007 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

merge 40007 13675
thanks

> From: Jan Synacek <jsynacek@HIDDEN>
> Date: Tue, 10 Mar 2020 10:48:24 +0100
> 
> 
> 1) emacs -Q
> 2) M-x shell
> 3) execute a program that displays a single line, about ~193000
> characters long
> 
> I accidentaly wrote a scheme program that dumped an entire file as a
> single line, about 193k characters long, into the shell buffer. Emacs'
> reponse latency becomes *very* slow, especially when navigating the
> point over the long line.

This is bug#13675 (and others that were merged with it).

We now have so-long-mode to alleviate some of the problems.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#40007; Package emacs. Full text available.

Message received at 40007 <at> debbugs.gnu.org:


Received: (at 40007) by debbugs.gnu.org; 10 Mar 2020 10:46:30 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Mar 10 06:46:30 2020
Received: from localhost ([127.0.0.1]:51927 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1jBcP7-0008CK-R9
	for submit <at> debbugs.gnu.org; Tue, 10 Mar 2020 06:46:29 -0400
Received: from smarthost-a.hosting2go.nl ([83.137.198.201]:55959)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <pieter-l@HIDDEN>) id 1jBcP6-0008C7-Se
 for 40007 <at> debbugs.gnu.org; Tue, 10 Mar 2020 06:46:29 -0400
X-ASG-Debug-ID: 1583837182-0ac37b1e552ea7c50001-YyCmTV
Received: from server24.hosting2go.nl (server24.hosting2go.nl
 [185.135.241.24]) by smarthost-a.hosting2go.nl with ESMTP id FVc1Hy13TJ4wneNv
 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for
 <40007 <at> debbugs.gnu.org>; Tue, 10 Mar 2020 11:46:22 +0100 (CET)
X-Barracuda-Envelope-From: pieter-l@HIDDEN
X-Barracuda-Effective-Source-IP: server24.hosting2go.nl[185.135.241.24]
X-Barracuda-Apparent-Source-IP: 185.135.241.24
Received: (qmail 30749 invoked from network); 10 Mar 2020 10:46:22 -0000
Received: from static-145.132.212.31.ip.telfort.nl (HELO
 cochabamba.vanoostrum.org) (145.132.212.31)
 by server24.hosting2go.nl with SMTP; 10 Mar 2020 10:46:22 -0000
Received-SPF: unknown (server24.hosting2go.nl: domain at 83.137.194.9 does not
 designate permitted sender hosts)
Received: from cochabamba.vanoostrum.org (localhost [IPv6:::1])
 by cochabamba.vanoostrum.org (Postfix) with ESMTP id 8165BAAC67A6;
 Tue, 10 Mar 2020 11:46:22 +0100 (CET)
From: Pieter van Oostrum <pieter-l@HIDDEN>
To: Jan Synacek <jsynacek@HIDDEN>
Subject: Re: bug#40007: 28.0.50; Emacs gets very slow when displaying a long
 line
References: <m6fmu8oh76f.fsf@HIDDEN>
X-ASG-Orig-Subj: Re: bug#40007: 28.0.50;
 Emacs gets very slow when displaying a long line
Date: Tue, 10 Mar 2020 11:46:22 +0100
In-Reply-To: <m6fmu8oh76f.fsf@HIDDEN> (Jan Synacek's
 message of "Tue, 10 Mar 2020 10:48:24 +0100")
Message-ID: <lxfteg1o8x.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.90 (darwin)
MIME-Version: 1.0
Content-Type: text/plain
X-Barracuda-Connect: server24.hosting2go.nl[185.135.241.24]
X-Barracuda-Start-Time: 1583837182
X-Barracuda-Encrypted: ECDHE-RSA-AES256-GCM-SHA384
X-Barracuda-URL: https://83.137.198.201:443/cgi-mod/mark.cgi
X-Virus-Scanned: by bsmtpd at hosting2go.nl
X-Barracuda-Scan-Msg-Size: 523
X-Barracuda-BRTS-Status: 1
X-Barracuda-Spam-Score: 0.00
X-Barracuda-Spam-Status: No, SCORE=0.00 using global scores of TAG_LEVEL=1000.0
 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=4.5 tests=BSF_SC0_MISMATCH_TO
A-X-Hosting2GO-Smarthost: Clean
X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.80576
 Rule breakdown below
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 0.00 BSF_SC0_MISMATCH_TO    Envelope rcpt doesn't match header
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 40007
Cc: 40007 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Jan Synacek <jsynacek@HIDDEN> writes:

> 1) emacs -Q
> 2) M-x shell
> 3) execute a program that displays a single line, about ~193000
> characters long
>
> I accidentaly wrote a scheme program that dumped an entire file as a
> single line, about 193k characters long, into the shell buffer. Emacs'
> reponse latency becomes *very* slow, especially when navigating the
> point over the long line.
>
Use so-long-mode.
-- 
Pieter van Oostrum
www: http://pieter.vanoostrum.org/
PGP key: [8DAE142BE17999C4]




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#40007; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 10 Mar 2020 09:48:37 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Mar 10 05:48:37 2020
Received: from localhost ([127.0.0.1]:51891 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1jBbV6-0006Rs-Ur
	for submit <at> debbugs.gnu.org; Tue, 10 Mar 2020 05:48:37 -0400
Received: from lists.gnu.org ([209.51.188.17]:59171)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <jsynacek@HIDDEN>) id 1jBbV3-0006Rc-7I
 for submit <at> debbugs.gnu.org; Tue, 10 Mar 2020 05:48:36 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:60718)
 by lists.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <jsynacek@HIDDEN>) id 1jBbV1-0002QQ-Hk
 for bug-gnu-emacs@HIDDEN; Tue, 10 Mar 2020 05:48:32 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,RCVD_IN_DNSWL_NONE
 autolearn=disabled version=3.3.2
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <jsynacek@HIDDEN>) id 1jBbV0-0005An-5C
 for bug-gnu-emacs@HIDDEN; Tue, 10 Mar 2020 05:48:31 -0400
Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:34454
 helo=us-smtp-1.mimecast.com)
 by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <jsynacek@HIDDEN>) id 1jBbV0-00059a-0R
 for bug-gnu-emacs@HIDDEN; Tue, 10 Mar 2020 05:48:30 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;
 s=mimecast20190719; t=1583833709;
 h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
 to:to:cc:mime-version:mime-version:content-type:content-type:
 content-transfer-encoding:content-transfer-encoding;
 bh=6xXHwFvF2jcef/J8Jx2/GGs1r9hdoH8aEgzl4IC85a0=;
 b=AVarrlozxr05pL4QVZWqAqZO2n7Kl/yOtZIgjqV1LEguL9qZR5qG8gh8kZLzgmvtzkkz/N
 E/QuVXl/tTPj8zaJ26U6gng1mfMdSwJBMjT5LiCeq2q3n5UfmsM3b0f8ougYyi9h3lv2sL
 MT0cf0op5FNfd7yVLk/LqiJsgCEgnFo=
Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com
 [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id
 us-mta-193-NNckO1yxNr-Sr9qGoyz3QQ-1; Tue, 10 Mar 2020 05:48:27 -0400
X-MC-Unique: NNckO1yxNr-Sr9qGoyz3QQ-1
Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com
 [10.5.11.22])
 (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))
 (No client certificate requested)
 by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 9A84A189F783
 for <bug-gnu-emacs@HIDDEN>; Tue, 10 Mar 2020 09:48:26 +0000 (UTC)
Received: from jsynacek-ntb.brq.redhat.com (unknown [10.43.7.140])
 by smtp.corp.redhat.com (Postfix) with ESMTPS id 1A7CE1001920
 for <bug-gnu-emacs@HIDDEN>; Tue, 10 Mar 2020 09:48:25 +0000 (UTC)
From: Jan Synacek <jsynacek@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 28.0.50; Emacs gets very slow when displaying a long line
Date: Tue, 10 Mar 2020 10:48:24 +0100
Message-ID: <m6fmu8oh76f.fsf@HIDDEN>
MIME-Version: 1.0
X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22
X-Mimecast-Spam-Score: 0
X-Mimecast-Originator: redhat.com
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
 [fuzzy]
X-Received-From: 207.211.31.120
X-Spam-Score: 0.2 (/)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.8 (/)


1) emacs -Q
2) M-x shell
3) execute a program that displays a single line, about ~193000
characters long

I accidentaly wrote a scheme program that dumped an entire file as a
single line, about 193k characters long, into the shell buffer. Emacs'
reponse latency becomes *very* slow, especially when navigating the
point over the long line.


In GNU Emacs 28.0.50 (build 7, x86_64-pc-linux-gnu, GTK+ Version 3.24.11, c=
airo version 1.16.0)
 of 2020-03-10 built on jsynacek-ntb.brq.redhat.com
Repository revision: a98c8f5a098cf646c282be67cce9fb7999d353d7
Repository branch: master
Windowing system distributor 'Fedora Project', version 11.0.12006000
System Description: Fedora 30 (Workstation Edition)

Recent messages:
Loading /usr/share/emacs/site-lisp/gtags.el (source)...done
For information about GNU Emacs and the GNU system, type C-h C-a.
Making completion list...
No match [2 times]
Buffer "*shell*" has a running process; kill it? (y or n) y
next-line: End of buffer
Revert buffer from file /home/jsynacek/todo.org? (y or n) y
Making completion list...

Configured using:
 'configure --prefix=3D/home/jsynacek/emacs'

Configured features:
XPM JPEG TIFF GIF PNG RSVG CAIRO SOUND GPM DBUS GSETTINGS GLIB NOTIFY
INOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE HARFBUZZ M17N_FLT LIBOTF
ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS LIBSYSTEMD
PDUMPER LCMS2 GMP

Important settings:
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix

Major mode: Org

Minor modes in effect:
  shell-dirtrack-mode: t
  delete-selection-mode: t
  show-paren-mode: t
  tooltip-mode: t
  global-eldoc-mode: t
  electric-indent-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
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug sendmail shell org-element avl-tree
generator ol-eww ol-rmail ol-mhe ol-irc ol-info ol-gnus nnir gnus-sum
url url-proxy url-privacy url-expand url-methods url-history mailcap shr
url-cookie url-domsuf url-util svg xml dom gnus-group gnus-undo
gnus-start gnus-cloud nnimap nnmail mail-source utf7 netrc nnoo
parse-time iso8601 gnus-spec gnus-int gnus-range message rmc puny rfc822
mml mml-sec epa derived epg epg-config mm-decode mm-bodies mm-encode
mail-parse rfc2231 mailabbrev gmm-utils mailheader gnus-win gnus
nnheader gnus-util rmail rmail-loaddefs rfc2047 rfc2045 ietf-drums
text-property-search mail-utils mm-util mail-prsvr wid-edit ol-docview
doc-view jka-compr image-mode exif dired dired-loaddefs ol-bibtex bibtex
ol-bbdb ol-w3m org ob ob-tangle ob-ref ob-lob ob-table ob-exp org-macro
org-footnote org-src ob-comint org-pcomplete pcomplete comint ansi-color
ring org-list org-faces org-entities time-date noutline outline
easy-mmode org-version ob-emacs-lisp ob-core ob-eval org-table ol
org-keys org-compat advice org-macs org-loaddefs format-spec find-func
cal-menu calendar cal-loaddefs gtags server sh-script smie executable
edmacro kmacro delsel paren info package easymenu browse-url
url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs
eieio-loaddefs password-cache json subr-x map url-vars seq byte-opt gv
bytecomp byte-compile cconv cl-loaddefs cl-lib tooltip eldoc electric
uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win
term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe
tabulated-list replace newcomment text-mode elisp-mode lisp-mode
prog-mode register page tab-bar menu-bar rfn-eshadow isearch timer
select scroll-bar mouse jit-lock font-lock syntax facemenu font-core
term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang
misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms
cp51932 hebrew greek romanian slovak czech european ethiopic indian
cyrillic chinese composite charscript charprop case-table epa-hook
jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice loaddefs
button faces cus-face macroexp files text-properties overlay sha1 md5
base64 format env code-pages mule custom widget hashtable-print-readable
backquote threads dbusbind inotify lcms2 dynamic-setting
system-font-setting font-render-setting cairo move-toolbar gtk x-toolkit
x multi-tty make-network-process emacs)

Memory information:
((conses 16 170604 23396)
 (symbols 48 19519 1)
 (strings 32 64980 1639)
 (string-bytes 1 2222006)
 (vectors 16 30280)
 (vector-slots 8 349836 16932)
 (floats 8 197 86)
 (intervals 56 414 0)
 (buffers 1000 14))





Acknowledgement sent to Jan Synacek <jsynacek@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#40007; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Tue, 10 Mar 2020 14:45:02 UTC

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