From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Brand Subject: Re: Opening an Org file slowed down Date: Tue, 26 Nov 2013 20:53:07 +0100 Message-ID: References: <87r4a7tmo2.fsf@gmail.com> <877gbv8437.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36882) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VlOh3-00058Y-QK for emacs-orgmode@gnu.org; Tue, 26 Nov 2013 14:53:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VlOh2-0007Mv-N1 for emacs-orgmode@gnu.org; Tue, 26 Nov 2013 14:53:09 -0500 Received: from mail-qe0-x22d.google.com ([2607:f8b0:400d:c02::22d]:48592) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VlOh2-0007Mm-JZ for emacs-orgmode@gnu.org; Tue, 26 Nov 2013 14:53:08 -0500 Received: by mail-qe0-f45.google.com with SMTP id 6so6156676qea.4 for ; Tue, 26 Nov 2013 11:53:08 -0800 (PST) In-Reply-To: <877gbv8437.fsf@gmail.com> 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: Nicolas Goaziou Cc: Org Mode Hi Nicolas On Tue, Nov 26, 2013 at 6:28 PM, Nicolas Goaziou wrote: > I implemented it. > > `org-element-at-point' runs in a mean constant time now (worst case is > still linear, though). Thank you. As I wrote in the other post my recipe is not a real use case any more for me so it doesn't really matter that opening the Org file is still slow. My understanding why seems to be limited. But your change makes a big difference for things like org-cycle on the only heading or org-element-at-point at the very end, org-element-at-point repeated many times to be able to notice the difference visually. Michael