From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Opening an Org file slowed down Date: Tue, 26 Nov 2013 23:19:35 +0100 Message-ID: <87fvqi7qmg.fsf@gmail.com> References: <87r4a7tmo2.fsf@gmail.com> <877gbv8437.fsf@gmail.com> <87k3fv6i3e.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46185) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VlQyc-0004yP-4O for emacs-orgmode@gnu.org; Tue, 26 Nov 2013 17:19:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VlQyT-000568-Oc for emacs-orgmode@gnu.org; Tue, 26 Nov 2013 17:19:26 -0500 Received: from mail-ea0-x22c.google.com ([2a00:1450:4013:c01::22c]:55754) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VlQyT-00055w-Ht for emacs-orgmode@gnu.org; Tue, 26 Nov 2013 17:19:17 -0500 Received: by mail-ea0-f172.google.com with SMTP id q10so4014908ead.17 for ; Tue, 26 Nov 2013 14:19:16 -0800 (PST) In-Reply-To: (Michael Brand's message of "Tue, 26 Nov 2013 21:50:00 +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: Michael Brand Cc: Org Mode Hello, Michael Brand writes: > What I don't understand is the still quadratic increase but if you > expect that for opening then it is ok for me. No, it should be linear. See below. > Uncompiled release_8.2.3c-302-g15246d on a not new machine: > > Open 400er: > org-mode 1 6.877958 6.877958 > org-set-startup-visibility 1 6.829008 6.829008 > org-cycle-hide-drawers 2 6.813782 3.406891 > org-element-at-point 400 6.784125 0.0169603125 > org-element-cache-get 82199 1.2511399999 1.522...e-05 > org-element-type 162000 0.6106539999 3.769...e-06 > > Open 800er: > org-mode 1 29.970716 29.970716 > org-set-startup-visibility 1 29.862721 29.862721 > org-cycle-hide-drawers 2 29.85923 14.929615 > org-element-at-point 800 29.639263000 0.0370490787 > org-element-cache-get 324399 4.5316569999 1.396...e-05 > org-element-type 644000 1.7653179999 2.741...e-06 For 800 I get (compiled) org-mode 1 0.990066643 0.990066643 org-set-startup-visibility 1 0.984746413 0.984746413 org-cycle-hide-drawers 2 0.980225726 0.490112863 org-element-at-point 800 0.7476192910 0.000934524 So, it is a linear increase here. Have you disabled cache? Regards, -- Nicolas Goaziou