From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rustom Mody Subject: speeding up org (was How could I mix COMMENT and TODO?) Date: Fri, 6 Apr 2012 18:40:43 +0530 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=e89a8f234bed44d33304bd026214 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:43648) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SG8wF-0002PC-85 for emacs-orgmode@gnu.org; Fri, 06 Apr 2012 09:10:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SG8wA-0003v3-Qh for emacs-orgmode@gnu.org; Fri, 06 Apr 2012 09:10:50 -0400 Received: from mail-gy0-f169.google.com ([209.85.160.169]:37978) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SG8wA-0003up-Jg for emacs-orgmode@gnu.org; Fri, 06 Apr 2012 09:10:46 -0400 Received: by ghrr18 with SMTP id r18so1522308ghr.0 for ; Fri, 06 Apr 2012 06:10:43 -0700 (PDT) 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: emacs-orgmode --e89a8f234bed44d33304bd026214 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Fran=E7ois wrote: > In my very first tries with Org, a few months ago, I put all Org files > into the agenda, to discover that Org was very, very slow. So, I > changed it all and collected all agenda and TODO into three files only, > holding lots of links to all other Org files where the information > really was. Org recovered all its speed. And besides, to repair the > lost search capabilities, I kludged M-x rgrep so it could search all Org > files and "reveal" contents when visiting hits. Well, the "reveal" does > not always work, but yet, the quicker search is constantly useful to me. > > Currently, having put TODOs back in their proper Org files and declaring > them as agenda files, 38 agenda files are taken out from 360 Org files. > Even if slightly less speedy than 3 agenda files, this is still very > bearable: Org does not crawl. The way Org handles "org-agenda-files" as > a string naming a file is really convenient to me, it eases the writing > of external programs acting on them all. All in all, very satisfactory! > Hi Fran=E7ois, I made the suggestion that ragel should/could be part of emacs: http://lists.gnu.org/archive/html/emacs-orgmode/2012-03/msg00864.html Summarised by saying that if ragel is integrated into elisp, org code could become both significantly faster and more readable. That most sluggish elisp code may be so due to regular expression code, is discussed here: http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg01202.html [In all fairness this is all a bit OT for an org list and should really be on an emacs devel list] Rusi --e89a8f234bed44d33304bd026214 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Fran=E7ois wrote:
=A0
In my very first tries with Org, a few months ago, I put all Org = files
into the agenda, to discover that Org was very, very slow. =A0So, I
chan= ged it all and collected all agenda and TODO into three files only,
hold= ing lots of links to all other Org files where the information
really wa= s. =A0Org recovered all its speed. =A0And besides, to repair the
lost search capabilities, I kludged M-x rgrep so it could search all Orgfiles and "reveal" contents when visiting hits. =A0Well, the &qu= ot;reveal" does
not always work, but yet, the quicker search is con= stantly useful to me.

Currently, having put TODOs back in their proper Org files and declarin= g
them as agenda files, 38 agenda files are taken out from 360 Org files= .
Even if slightly less speedy than 3 agenda files, this is still very bearable: Org does not crawl. =A0The way Org handles "org-agenda-files= " as
a string naming a file is really convenient to me, it eases th= e writing
of external programs acting on them all. =A0All in all, very s= atisfactory!


Hi Fran=E7ois,

I made the suggestion that ragel= should/could be part of emacs:
http://lists.gn= u.org/archive/html/emacs-orgmode/2012-03/msg00864.html

Summarised by saying that if ragel is integrated into elisp, org code c= ould become both significantly faster and more readable.

That most sluggish elisp code may be so due to regular expression code,= is discussed here:
http://lists.gnu.org/archive/= html/emacs-devel/2010-04/msg01202.html

[In all fairness this is all a bit OT for an org list and should really= be on an emacs devel list]

Rusi
--e89a8f234bed44d33304bd026214--