emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Clocking in is pretty slow in version 9.6 when the item has a large
@ 2022-12-04 12:12 Eli Qian
  2022-12-04 17:34 ` Mark Barton
  2022-12-04 17:41 ` Ihor Radchenko
  0 siblings, 2 replies; 10+ messages in thread
From: Eli Qian @ 2022-12-04 12:12 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 588 bytes --]

I use the following method to get the time taken for `org-clocl-in`:
(benchmark 1 '(org-clock-sum (org-clock-get-sum-start)))

In my case, the item has 1400+ entries in its logbook,  clocking in will
cost
1-2s to finish(benchmark results: "Elapsed time: 1.689801s (0.527506s in 7
GCs)"). That's abnormal because it is done very quickly in version
9.5.5.(benchmark result: "Elapsed time: 0.057270s")

After investigation by using profiler, I found the problem is caused by
`org-element-at-point`, which was added to `org-clock-sum` in version 9.6.

Any idea about speeding up clocking in?

[-- Attachment #2: Type: text/html, Size: 676 bytes --]

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

end of thread, other threads:[~2022-12-07 19:27 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-04 12:12 Clocking in is pretty slow in version 9.6 when the item has a large Eli Qian
2022-12-04 17:34 ` Mark Barton
2022-12-04 17:41 ` Ihor Radchenko
2022-12-04 17:59   ` [External] : " Daniel Ortmann
2022-12-04 18:18   ` Ihor Radchenko
2022-12-04 18:40     ` Mark Barton
2022-12-07 11:53       ` Ihor Radchenko
2022-12-07 18:28         ` Mark Barton
2022-12-07 18:36           ` Ihor Radchenko
2022-12-07 19:27             ` Mark Barton

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).