emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Org-refile is quite slow
@ 2012-10-03  8:20 Sebastien Vauban
  2012-10-03  9:16 ` Bastien
  0 siblings, 1 reply; 3+ messages in thread
From: Sebastien Vauban @ 2012-10-03  8:20 UTC (permalink / raw)
  To: emacs-orgmode-mXXj517/zsQ

Hello,

As said, I find the refiling quite slow -- am I the only one?

When refiling, I see "Getting targets..." for some seconds. And I could get
those profiling results:

--8<---------------cut here---------------start------------->8---
org-refile                    1           9.484         9.484
org-refile-get-location       1           9.313         9.313
org-refile-get-targets        1           7.015         7.015
org-let                       2           5.624         2.812
org-search-view               2           5.624         2.812
org-sparse-tree               1           4.469         4.469
org-occur                     1           4.297         4.297
org-agenda-redo               1           4.031         4.031
org-agenda-to-appt            2           3.0           1.5
org-agenda-get-day-entries    90          2.3900000000  0.0265555555
org-agenda                    1           2.344         2.344
org-olpath-completing-read    1           2.047         2.047
org-icompleting-read          1           2.047         2.047
org-agenda-prepare            2           1.812         0.906
org-agenda-get-scheduled      90          1.6300000000  0.0181111111
--8<---------------cut here---------------end--------------->8---

Any idea where to look at first, in which direction (if I'm quite alone
experiencing such long wait times)?

Best regards,
  Seb

-- 
Sebastien Vauban

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Org-refile is quite slow
  2012-10-03  8:20 Org-refile is quite slow Sebastien Vauban
@ 2012-10-03  9:16 ` Bastien
  2012-10-03 11:15   ` Sebastien Vauban
  0 siblings, 1 reply; 3+ messages in thread
From: Bastien @ 2012-10-03  9:16 UTC (permalink / raw)
  To: Sebastien Vauban; +Cc: public-emacs-orgmode-mXXj517/zsQ



Hi Sébastien,

"Sebastien Vauban"
<wxhgmqzgwmuf-geNee64TY+gS+FvcfC7Uqw@public.gmane.org> writes:

> As said, I find the refiling quite slow -- am I the only one?

Depending on `org-refile-targets' yes, it can be slow.
`org-refile-use-cache' can help here, but still, you may
have to refresh the cache from time to time, and it is
annoying.

Any idea on how to improve this is welcome.

-- 
 Bastien

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Org-refile is quite slow
  2012-10-03  9:16 ` Bastien
@ 2012-10-03 11:15   ` Sebastien Vauban
  0 siblings, 0 replies; 3+ messages in thread
From: Sebastien Vauban @ 2012-10-03 11:15 UTC (permalink / raw)
  To: emacs-orgmode-mXXj517/zsQ

Hi Bastien,

Bastien wrote:
> "Sebastien Vauban" writes:
>
>> As said, I find the refiling quite slow -- am I the only one?
>
> Depending on `org-refile-targets' yes, it can be slow.
> `org-refile-use-cache' can help here

Didn't know about that. Thanks for the tip.

The effect is day and night. It's really much, much quicker now.

> but still, you may have to refresh the cache from time to time, and it is
> annoying.

IIUC, the cache is "in memory", not "in file" (like the clock history, or
Gnus' registry).

> Any idea on how to improve this is welcome.

If this is the case (cache destroyed at every Emacs shutdown), I find this a
perfect solution already...

Best regards,
  Seb

-- 
Sebastien Vauban

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-10-03 11:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-03  8:20 Org-refile is quite slow Sebastien Vauban
2012-10-03  9:16 ` Bastien
2012-10-03 11:15   ` Sebastien Vauban

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).