From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#18778: noticeable slowdown for buffers with long lines, word-wrap, and brackets Date: Mon, 20 Oct 2014 22:33:12 +0300 Message-ID: <83k33ubkp3.fsf@gnu.org> References: <834mv55quj.fsf@gnu.org> <87wq7ur1o7.fsf@violet.siamics.net> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT X-Trace: ger.gmane.org 1413833670 15369 80.91.229.3 (20 Oct 2014 19:34:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 20 Oct 2014 19:34:30 +0000 (UTC) Cc: 18778@debbugs.gnu.org To: Ivan Shmakov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Oct 20 21:34:23 2014 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 1XgIik-0004jS-5J for geb-bug-gnu-emacs@m.gmane.org; Mon, 20 Oct 2014 21:34:22 +0200 Original-Received: from localhost ([::1]:46523 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XgIij-0004sl-Pg for geb-bug-gnu-emacs@m.gmane.org; Mon, 20 Oct 2014 15:34:21 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53473) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XgIiX-0004i9-4b for bug-gnu-emacs@gnu.org; Mon, 20 Oct 2014 15:34:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XgIiQ-00032C-TX for bug-gnu-emacs@gnu.org; Mon, 20 Oct 2014 15:34:09 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:37160) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XgIiQ-000325-Ky for bug-gnu-emacs@gnu.org; Mon, 20 Oct 2014 15:34:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XgIiQ-0004Gw-2H for bug-gnu-emacs@gnu.org; Mon, 20 Oct 2014 15:34:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 20 Oct 2014 19:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18778 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 18778-submit@debbugs.gnu.org id=B18778.141383361216381 (code B ref 18778); Mon, 20 Oct 2014 19:34:02 +0000 Original-Received: (at 18778) by debbugs.gnu.org; 20 Oct 2014 19:33:32 +0000 Original-Received: from localhost ([127.0.0.1]:57491 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XgIhv-0004G9-Aa for submit@debbugs.gnu.org; Mon, 20 Oct 2014 15:33:31 -0400 Original-Received: from mtaout28.012.net.il ([80.179.55.184]:48599) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XgIhr-0004Fh-Or for 18778@debbugs.gnu.org; Mon, 20 Oct 2014 15:33:29 -0400 Original-Received: from conversion-daemon.mtaout28.012.net.il by mtaout28.012.net.il (HyperSendmail v2007.08) id <0NDR00900CR1OB00@mtaout28.012.net.il> for 18778@debbugs.gnu.org; Mon, 20 Oct 2014 22:31:25 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout28.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NDR006LFCWDPE30@mtaout28.012.net.il>; Mon, 20 Oct 2014 22:31:25 +0300 (IDT) In-reply-to: <87wq7ur1o7.fsf@violet.siamics.net> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x 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:94837 > From: Ivan Shmakov > Date: Mon, 20 Oct 2014 19:17:28 +0000 > > • create a buffer with long lines (see below for the example > I’ve used), and (setq word-wrap t line-move-visual nil) there; > > • now, enclose every line in [, ] brackets (as in: M-x > replace-regexp RET .* RET [\&] RET; parentheses or curly > braces also exhibit the issue.) > > For the resulting buffer, operations like (next-line) or even > (recenter) now result in a noticeable delay. > > The issue doesn’t appear when word-wrap is not used, or when > there’s no brackets in the buffer. Neither the issue appears in > Emacs built 2014-10-09 from a then-recent Git clone. > > I’ve used the output of the following Shell command as a test. > > $ head -n 8192 < /usr/share/dict/american-english | fmt -w 1024 Is it an important use case? If so, what is the real-life situation here?