From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: footnote fontify causing massive slowdown Date: Sun, 06 Dec 2015 10:41:09 +0100 Message-ID: <87k2orq5hm.fsf@nicolasgoaziou.fr> References: <87egf1qcgn.fsf@nicolasgoaziou.fr> <87h9jx2eiy.fsf@gmail.com> <87610crjr7.fsf@nicolasgoaziou.fr> <87bna43n5n.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60459) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a5Vms-0006Up-U9 for emacs-orgmode@gnu.org; Sun, 06 Dec 2015 04:39:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a5Vmp-0001V1-NY for emacs-orgmode@gnu.org; Sun, 06 Dec 2015 04:39:22 -0500 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:51853) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a5Vmp-0001Uw-Hd for emacs-orgmode@gnu.org; Sun, 06 Dec 2015 04:39:19 -0500 In-Reply-To: <87bna43n5n.fsf@gmail.com> (Aaron Ecay's message of "Sat, 05 Dec 2015 15:55:48 +0000") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Derek Feichtinger Cc: emacs-orgmode@gnu.org Hello, Aaron Ecay writes: > The way I read the report, org-footnote-in-valid-context-p takes 44% > of the cumulative time, which is composed of > org-inside-LaTeX-fragment-p (25%) + org-in-block-p (16%) + other stuff > (3%). So org-inside-LaTeX-fragment-p accounts for >50% of the time > spent in org-footnote-in-valid-context-p. Interesting. I thought that percents were cumulative, so `org-in-block-p' accounted for 16% - 1% and `org-inside-LaTeX-fragment-p' 25% - 16% of the total time. > I see. Eventually it sounds like a good idea, indeed. Maybe we should > use something a bit stronger than org-lint to warn of the deprecation. > What if opening a document with plain footnotes generated a warning? Generate a warning about plain footnotes deprecation ? How do you turn it off ? Do you require the user to set some variable to a non-nil value before Org's initialization ? IIRC Magit did that at some point and I found it annoying. Note that we cannot turn it off automatically due to false positives (i.e., we cannot decide if there are obsolete footnotes in the document or something looking like them and yet perfectly valid in the document). Regards, -- Nicolas Goaziou