From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: ynyaaa@gmail.com Newsgroups: gmane.emacs.bugs Subject: bug#26051: 25.1; overlays may make emacs very slow Date: Sat, 11 Mar 2017 01:25:22 +0900 Message-ID: <87varh3xql.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1489163173 8961 195.159.176.226 (10 Mar 2017 16:26:13 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 10 Mar 2017 16:26:13 +0000 (UTC) To: 26051@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Mar 10 17:26:08 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cmNMl-0001dD-46 for geb-bug-gnu-emacs@m.gmane.org; Fri, 10 Mar 2017 17:26:07 +0100 Original-Received: from localhost ([::1]:39783 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cmNMq-000521-Q2 for geb-bug-gnu-emacs@m.gmane.org; Fri, 10 Mar 2017 11:26:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45732) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cmNMj-00051j-VS for bug-gnu-emacs@gnu.org; Fri, 10 Mar 2017 11:26:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cmNMg-0003oB-O1 for bug-gnu-emacs@gnu.org; Fri, 10 Mar 2017 11:26:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:51666) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cmNMg-0003nz-Il for bug-gnu-emacs@gnu.org; Fri, 10 Mar 2017 11:26:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cmNMg-00037w-8T for bug-gnu-emacs@gnu.org; Fri, 10 Mar 2017 11:26:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: ynyaaa@gmail.com Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 10 Mar 2017 16:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 26051 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.148916313211978 (code B ref -1); Fri, 10 Mar 2017 16:26:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 10 Mar 2017 16:25:32 +0000 Original-Received: from localhost ([127.0.0.1]:49865 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cmNMB-000377-LP for submit@debbugs.gnu.org; Fri, 10 Mar 2017 11:25:31 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:54616) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cmNMA-00036s-7H for submit@debbugs.gnu.org; Fri, 10 Mar 2017 11:25:30 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cmNM1-0003NU-NL for submit@debbugs.gnu.org; Fri, 10 Mar 2017 11:25:22 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:33128) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cmNM1-0003NM-JZ for submit@debbugs.gnu.org; Fri, 10 Mar 2017 11:25:21 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45578) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cmNM0-0004f1-BQ for bug-gnu-emacs@gnu.org; Fri, 10 Mar 2017 11:25:21 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cmNLx-0003LV-42 for bug-gnu-emacs@gnu.org; Fri, 10 Mar 2017 11:25:20 -0500 Original-Received: from mail-pg0-x22c.google.com ([2607:f8b0:400e:c05::22c]:35187) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cmNLw-0003Jd-Ty for bug-gnu-emacs@gnu.org; Fri, 10 Mar 2017 11:25:17 -0500 Original-Received: by mail-pg0-x22c.google.com with SMTP id b129so40584167pgc.2 for ; Fri, 10 Mar 2017 08:25:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version; bh=VG27xeGSUUS9y8FRgPw2M9S3FbIgiSRxlMtrvQch+Xo=; b=VN6ulibHTy3U/mRjZG2LUcQTvoMy71CnDk0hEGMltClm5IG0GyuXncN5tYnnmkmIi4 sikU1xBlYETkN3NnqXyJNTZ8J/STh1WPZO9CSdb+E4vFzq4/LZLw5wzm6sNRCoqlsY5E WfSar3BdOMbnq+ZgoBso7xnQVwu0d9VLdUZNp7iHPCjs/I3/VqVRUOhpTu24wTl9Qx0x dWtuKQP+BTlzeNcTM8ilOsVvxmYgeIt9NUVakxJ/XfmyptHDpBsrW2OArpphcUuwIni0 dUCqxpRlsrzgS3m8AdQJa0J4AeNOZxMC8BnohessySc9R2PD/1ZCBh8ZJaKbRNIjobMq Yvww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=VG27xeGSUUS9y8FRgPw2M9S3FbIgiSRxlMtrvQch+Xo=; b=CMdZViSxR0m5rhqD5Td7zqWgd2gFrmufGBAERP2n9lYV/I6+x9PM4WUZ/YIqp24GrV +JmJKpgqdd0MjvCKStaOnbkI71aH5z+WW392pQHyQIEIXCB4GhkXFUTV1TaT1D88yRTD d2qWQKMlVrhs2V4D6yAfyu6kUgqpQRwrSwvqRdKHA6SAeAkbLrFt42ByAlqHf/EZZtNF mhH5OLSgiKKEwnzVdddl2KpV/bWyXe5/zt4eMWXBFqSgOkqQO2wfjKuZyoUZOnUori9y 1OgvZ1JTwqhxll/QoAx/vw3hTn2xBToVR89xMwJ99FPa6TaP4ZPhAsv7e4iNaLmq/Vx0 dhUw== X-Gm-Message-State: AMke39knqSueU+cKFVFj1pB8j87YjvOKgvP3zQ3ZaRk9Vs08iCpOf3plVMbKl93h8OmOag== X-Received: by 10.98.138.132 with SMTP id o4mr21687431pfk.70.1489163114214; Fri, 10 Mar 2017 08:25:14 -0800 (PST) Original-Received: from PNUT-PC (east24-p58.eaccess.hi-ho.ne.jp. [218.42.167.59]) by smtp.gmail.com with ESMTPSA id w14sm19721037pgo.37.2017.03.10.08.25.12 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 10 Mar 2017 08:25:13 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:130442 Archived-At: Evaluating the form below in the *scratch* buffer, it takes a few seconds to show the result. (let ((n 65536)) (save-excursion (dotimes (i n) (insert (format "%d\n" i)))) (dotimes (i n) (make-overlay (point) (progn (forward-line) (point)))) (message "Done.")) If I evaluate the form as below, it takes about 30 seconds. (1) switch to a newly created buffer (2) insert the code into the buffer (3) insert 2 line breaks after the last closing parenthesis (4) type C-x C-e If I evaluate the form as below, it takes about 10 minutes. (1) switch to a newly created buffer (2) type M-: and input the code In each case, the message "Done." is displayed in a few seconds. But it takes a long time to display the buffer contents. In GNU Emacs 25.1.1 (i686-w64-mingw32) of 2016-09-18 built on LAPHROAIG Windowing system distributor 'Microsoft Corp.', version 6.0.6002 Configured using: 'configure --host=i686-w64-mingw32 --without-dbus --without-compress-install CFLAGS=-static' Configured features: XPM JPEG TIFF GIF PNG RSVG SOUND NOTIFY ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS Important settings: value of $LANG: JPN locale-coding-system: cp932 Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent messages: Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message dired format-spec rfc822 mml mml-sec password-cache epg epg-config gnus-util mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util help-fns help-mode easymenu cl-loaddefs pcase cl-lib mail-prsvr mail-utils time-date mule-util japan-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel dos-w32 ls-lisp disp-table w32-win w32-vars term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame 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 charscript case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer 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 w32notify w32 multi-tty make-network-process emacs) Memory information: ((conses 8 91638 4868) (symbols 32 19658 0) (miscs 32 50 119) (strings 16 15828 4143) (string-bytes 1 427112) (vectors 8 13127) (vector-slots 4 519096 5994) (floats 8 164 67) (intervals 28 213 16) (buffers 520 19))