[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] M-RET slow
From: |
Nicolas Goaziou |
Subject: |
Re: [O] M-RET slow |
Date: |
Fri, 26 Apr 2013 17:24:19 +0200 |
Bastien <address@hidden> writes:
> Hi Nicolas,
>
> Nicolas Goaziou <address@hidden> writes:
>
>> Hello,
>>
>> Bastien <address@hidden> writes:
>>
>>> Carsten Dominik <address@hidden> 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'.
"very expensive" is a bit harsh, at it doesn't depend on the size of the
list. Anyway, ultimately, `org-at-item-p' and `org-in-item-p' should be
replaced by `org-element-at-point'.
Then, all speed-up efforts should concentrate on that function (e.g.,
caching).
Regards,
--
Nicolas Goaziou
- [O] M-RET slow, Samuel Wales, 2013/04/25
- Re: [O] M-RET slow, Nicolas Goaziou, 2013/04/26
- Re: [O] M-RET slow, Carsten Dominik, 2013/04/26
- Re: [O] M-RET slow, Nicolas Goaziou, 2013/04/26
- Re: [O] M-RET slow, Bastien, 2013/04/26
- Re: [O] M-RET slow, Samuel Wales, 2013/04/27
- Re: [O] M-RET slow, Bastien, 2013/04/28