From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: element-debug-mode breaks capture Date: Wed, 19 Aug 2015 15:43:31 +0200 Message-ID: <87io8b8kcc.fsf@nicolasgoaziou.fr> References: <87r3n08uw8.fsf@gnu.org> <87lhd7aamd.fsf@nicolasgoaziou.fr> <877formv32.fsf@gnu.org> <87bne3a7n2.fsf@nicolasgoaziou.fr> <87twrvtun5.fsf@gnu.org> <87oai3iigi.fsf@ucl.ac.uk> <87614be8es.fsf@free.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60055) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZS3cq-0006c7-V7 for emacs-orgmode@gnu.org; Wed, 19 Aug 2015 09:41:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZS3cp-0004xN-U4 for emacs-orgmode@gnu.org; Wed, 19 Aug 2015 09:41:56 -0400 In-Reply-To: <87614be8es.fsf@free.fr> (Bastien's message of "Wed, 19 Aug 2015 15:04:43 +0200") 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: Bastien Cc: emacs-orgmode@gnu.org Bastien writes: > Eric S Fraga writes: > >> On Wednesday, 19 Aug 2015 at 12:55, Bastien wrote: >> >> [...] >> >>> With a 13MO file, with 500 headlines, each containing about 100 >>> paragraphs, editing the end of the last paragraph (unfill/fill) >>> is just very fast. >> >> What about editing at the start of the file? > > Very fast. I made a small movie, that'll help telling if I'm > doing the wrong tests: > > http://bzg.fr/u/org-element-cache-test.ogv You edit the first paragraph of a section, which is always fast. Try 1000 paragraphs in a single entry and move to the end of line anywhere in the last one. Also, try (require 'benchmark) (benchmark 1 '(org-element-at-point)) *twice* with or without `org-element-use-cache' in that last paragraph. Without cache, parsing doesn't scale. Some users reported already in th past having issues with speed on large documents. Regards,