From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: compilation issues of new export framework Date: Sun, 10 Feb 2013 16:53:59 +0100 Message-ID: <87fw14f9m0.fsf@gmail.com> References: <876229nrxf.fsf@gmail.com> <87a9rd3odf.fsf@Rainer.invalid> <87y5ex5rwa.fsf_-_@Rainer.invalid> <877gmhs7f4.fsf@gmail.com> <87txpko3cr.fsf@Rainer.invalid> <87k3qgfhz4.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:56842) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U4ZEP-0006vR-OV for emacs-orgmode@gnu.org; Sun, 10 Feb 2013 10:54:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U4ZEO-0003ZB-Hn for emacs-orgmode@gnu.org; Sun, 10 Feb 2013 10:54:17 -0500 Received: from mail-wg0-f50.google.com ([74.125.82.50]:47406) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U4ZEO-0003Z5-9n for emacs-orgmode@gnu.org; Sun, 10 Feb 2013 10:54:16 -0500 Received: by mail-wg0-f50.google.com with SMTP id es5so4172007wgb.29 for ; Sun, 10 Feb 2013 07:54:15 -0800 (PST) In-Reply-To: <87k3qgfhz4.fsf@gmail.com> (Nicolas Goaziou's message of "Sun, 10 Feb 2013 13:53:19 +0100") 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: Achim Gratz Cc: emacs-orgmode@gnu.org Completing myself, Nicolas Goaziou writes: > Speed is the whole point, indeed. A quick profiling with and without > defsubst gives me: > > | defsubst | org-element-parse-buffer | 10 | 16.252699 | 1.6252699 | > | defun | org-element-parse-buffer | 10 | 19.812426 | 1.9812425999 | > > It is about 20 % faster. On the other hand, `org-element-type' and al. from org.el are called less often. So, it is not a problem if they are compiled as function calls. Eventually, I'd say that the situation is fine as it is. Regards, -- Nicolas Goaziou