From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#33939: 26.1; Avoid loading libs eagerly or unnecessarily in mhtml-mode/sgml-mode Date: Sat, 05 Jan 2019 11:47:38 +0200 Message-ID: <83imz31lmt.fsf@gnu.org> References: NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1546681629 27706 195.159.176.226 (5 Jan 2019 09:47:09 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 5 Jan 2019 09:47:09 +0000 (UTC) Cc: 33939@debbugs.gnu.org To: Leo Liu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jan 05 10:47:04 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gfiXo-00077T-Ck for geb-bug-gnu-emacs@m.gmane.org; Sat, 05 Jan 2019 10:47:04 +0100 Original-Received: from localhost ([127.0.0.1]:55950 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gfiZv-00071N-62 for geb-bug-gnu-emacs@m.gmane.org; Sat, 05 Jan 2019 04:49:15 -0500 Original-Received: from eggsout.gnu.org ([209.51.188.92]:53095 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gfiZp-00071H-7t for bug-gnu-emacs@gnu.org; Sat, 05 Jan 2019 04:49:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gfiZj-00062K-NN for bug-gnu-emacs@gnu.org; Sat, 05 Jan 2019 04:49:09 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:37317) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gfiZi-000622-E9 for bug-gnu-emacs@gnu.org; Sat, 05 Jan 2019 04:49:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gfiZi-0000jS-A9 for bug-gnu-emacs@gnu.org; Sat, 05 Jan 2019 04:49:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 05 Jan 2019 09:49:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33939 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 33939-submit@debbugs.gnu.org id=B33939.15466816852748 (code B ref 33939); Sat, 05 Jan 2019 09:49:02 +0000 Original-Received: (at 33939) by debbugs.gnu.org; 5 Jan 2019 09:48:05 +0000 Original-Received: from localhost ([127.0.0.1]:47248 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gfiYn-0000iG-1l for submit@debbugs.gnu.org; Sat, 05 Jan 2019 04:48:05 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:60747) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gfiYl-0000i7-Ej for 33939@debbugs.gnu.org; Sat, 05 Jan 2019 04:48:03 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gfiYg-0005hL-3V for 33939@debbugs.gnu.org; Sat, 05 Jan 2019 04:48:03 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:55993) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gfiYg-0005hC-0b; Sat, 05 Jan 2019 04:47:58 -0500 Original-Received: from [176.228.60.248] (port=4577 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gfiYf-0007Ui-Kv; Sat, 05 Jan 2019 04:47:57 -0500 In-reply-to: (message from Leo Liu on Tue, 01 Jan 2019 10:12:05 +0800) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:154156 Archived-At: > From: Leo Liu > Date: Tue, 01 Jan 2019 10:12:05 +0800 > > Switching from html-mode I have noticed mhtml-mode can take a second or > two (unpleasant noticeable delay) to load on my 2013 macbook air. The > following is a small patch that alleviate the problem. Is it safe for > emacs-26? I cannot establish whether these changes are safe for Emacs 26.2, since they are not really trivial. Perhaps if you told more about each change, I could make up my mind. Some of the questions I would like to be able to answer in order to make the decision: . which of the 'require's you want to remove take the lion's share of the load time? . why was seq-mapcat used originally instead of mapcan, and what is the semantics of replacing the former by the latter? . why did you switch the order of eval-when-compile in sgml-mode.el? Thanks.