From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: M-RET slow Date: Fri, 26 Apr 2013 17:20:43 +0200 Message-ID: <87k3nptj1w.fsf@bzg.ath.cx> References: <87fvyd7q3m.fsf@bzg.ath.cx> <87ip3974uj.fsf@gmail.com> <877gjpbbgx.fsf@bzg.ath.cx> <87a9ol73cu.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:58800) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UVkSE-0002ZJ-CN for emacs-orgmode@gnu.org; Fri, 26 Apr 2013 11:20:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UVkSA-0002Dx-Ba for emacs-orgmode@gnu.org; Fri, 26 Apr 2013 11:20:54 -0400 Received: from mail-wi0-x22c.google.com ([2a00:1450:400c:c05::22c]:37264) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UVkS9-0002Dd-Uc for emacs-orgmode@gnu.org; Fri, 26 Apr 2013 11:20:50 -0400 Received: by mail-wi0-f172.google.com with SMTP id hm14so745740wib.5 for ; Fri, 26 Apr 2013 08:20:49 -0700 (PDT) In-Reply-To: <87a9ol73cu.fsf@gmail.com> (Nicolas Goaziou's message of "Fri, 26 Apr 2013 16:50:41 +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: Nicolas Goaziou Cc: emacs-orgmode@gnu.org, Carsten Dominik Hi Nicolas, Nicolas Goaziou writes: > Hello, > > Bastien writes: > >> Carsten Dominik writes: >> >>> is org-in-item-p slow? >> >> It depends on the size of the list -- see for example this problem, >> where moving an item within a logbook drawer with many items is too >> slow: >> >> http://thread.gmane.org/gmane.emacs.orgmode/66574 > > This is a different issue. `org-move-item-down' doesn't use > `org-in-item-p'. The bottleneck here is, without surprise, > `org-list-struct', as explained in the comments at the beginning of > "org-list.el". I see. `org-at-item-p' is less expensive than `org-in-item-p' but still very expensive as it calls `org-list-in-valid-context-p'. -- Bastien