From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: Logbook drawer entries make editing very slow Date: Thu, 18 Apr 2013 12:56:50 +0200 Message-ID: <878v4g3y4t.fsf@bzg.ath.cx> References: <87wqu3xvi6.fsf@hsdev.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:36567) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1USmWO-0001Bm-N1 for emacs-orgmode@gnu.org; Thu, 18 Apr 2013 06:56:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1USmWN-0006RU-MV for emacs-orgmode@gnu.org; Thu, 18 Apr 2013 06:56:56 -0400 Received: from mail-wg0-x234.google.com ([2a00:1450:400c:c00::234]:64740) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1USmWN-0006RG-GV for emacs-orgmode@gnu.org; Thu, 18 Apr 2013 06:56:55 -0400 Received: by mail-wg0-f52.google.com with SMTP id k13so14666wgh.19 for ; Thu, 18 Apr 2013 03:56:54 -0700 (PDT) In-Reply-To: <87wqu3xvi6.fsf@hsdev.com> (Marcel van der Boom's message of "Wed, 20 Feb 2013 09:03:13 +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: Marcel van der Boom Cc: emacs-orgmode@gnu.org Hi Marcel, Marcel van der Boom writes: > I'm using habit-style items a lot in my 'org' routine. A typical entry > would look like this: > > #+BEGIN_SRC org > *** TODO Do something daily > SCHEDULED: <2013-02-20 wo .+1d> > :LOGBOOK: > - State "DONE" from "TODO" [2013-02-19 di 14:01] > - State "DONE" from "TODO" [2013-02-17 zo 12:39] > ... > [lots of entries here] > ... > - State "DONE" from "TODO" [2010-02-25 Thu 13:51] > - State "DONE" from "TODO" [2010-02-10 Wed 15:19] > :END: > :PROPERTIES: > :STYLE: habit > :LAST_REPEAT: [2013-02-19 di 14:01] > :CREATED: <2011-03-25 vr 12:33> > :END: > ...Some description... > #+END > > I have all habits in a file habits.org which is part of the > 'org-agenda-files' list. > > When editing entries in the habits.org file, for example changing the > header, emacs CPU using goes to 100% and every keystroke takes 5-10 > seconds. (org-at-item-p) can be very expensive, because it calls (org-list-in-valid-context-p) which is also expensive and clearly not optimized for every list movements. I found out that the use is still acceptable for 1000-2000 list items, so I won't fix this right now, but something to keep under the radar, yes. In the meantime, cleaning out the logs sometimes is the only suggestion I can make. Thanks for reporting this, -- Bastien