emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Samuel Wales <samologist@gmail.com>
To: emacs-orgmode@gnu.org
Subject: batch archiving is too slow for my computer ... is it really intensive?
Date: Tue, 2 Feb 2021 15:38:22 -0700	[thread overview]
Message-ID: <CAJcAo8uby+yfV9OWiHeZ3MyQiuA3OWOdB9yfVSoYmoXE-9Bbfg@mail.gmail.com> (raw)

maint.

i have an old computer, which usually has no problems if i am careful,
except org is recently somewhat slower.

with agenda batch archiving, however, even for just a few entries, the
cpu overheats.

the cpu never gets above 28% in a dual core in gkrellm, meaning that
only 1/4 of total capacity in a dual core is used.  i don't know why
that makes it overheat.

here is a profiler report for archiving 2 entries.  then 2 entries again.

is this kind of a normal profiler report?

thanks.

- command-execute                                         297,963,432  99%
 - call-interactively                                     297,963,432  99%
  - funcall-interactively                                 297,963,432  99%
   - org-agenda-bulk-action                               273,550,028  91%
    - org-agenda-archive                                  272,853,572  91%
     - funcall-interactively                              272,853,508  91%
      - org-agenda-archive-with                           272,853,508  91%
       - org-archive-subtree                              272,828,828  91%
        - org-show-all                                    262,058,419  87%
         - org-cycle-hide-drawers                         260,230,547  87%
          - #<compiled 0xa790a9>                          260,226,323  87%
           - org-element-at-point                         254,156,375  85%
            - org-element--parse-to                       251,281,887  84%
             - org-element--current-element               247,748,793  83%
              - org-element-planning-parser                13,355,147   4%
               - org-element-timestamp-parser              11,180,859   3%
                - org-parse-time-string                     5,781,180   1%
                   string-to-number                             3,726   0%
                  match-string-no-properties                2,206,416   0%
                  match-string                                  1,863   0%
              - org-at-heading-p                              841,472   0%
                 outline-on-heading-p                         106,496   0%
              + org-element--list-struct                      528,710   0%
                org-element-property-drawer-parser            414,880   0%
                org-element--collect-affiliated-keywords       348,220   0%
              + org-element-drawer-parser                     340,004   0%
                org-element-paragraph-parser                  296,720   0%
                org-element-plain-list-parser                 155,040   0%
                org-element-item-parser                        18,496   0%
                org-element-comment-parser                      8,192   0%
               outline-previous-heading                       106,574   0%
            + org-at-heading-p                              1,374,384   0%
           + org-hide-drawer-toggle                         5,006,924   1%
         + org-flag-region                                  1,827,872   0%
        + find-file-noselect                                9,965,693   3%
        + org-entry-put                                       233,830   0%
        + org-get-category                                    118,306   0%
        + org-reveal                                           78,080   0%
        + org-update-statistics-cookies                        65,870   0%
        + org-get-outline-path                                 54,804   0%
        + org-entry-get                                        50,410   0%
        + org-paste-subtree                                    32,604   0%
        + org-cut-subtree                                      27,552   0%
        + org-archive--compute-location                        25,772   0%
        + org-copy-subtree                                     21,428   0%
          abbreviate-file-name                                 16,432   0%
          org-string-nw-p                                      12,524   0%
          do-after-load-evaluation                             11,682   0%
        + jit-lock-after-change                                 8,696   0%
        + org-get-tags                                          5,408   0%
          org-up-heading-safe                                   4,096   0%
        + substitute-env-in-file-name                           1,154   0%
        + find-buffer-visiting                                  1,048   0%
        + org-back-to-heading                                   1,024   0%
       + org-remove-subtree-entries-from-agenda                 8,240   0%
         #<compiled 0xba9775>                                   1,604   0%
    + org-unlogged-message                                    693,000   0%
    + read-char-exclusive                                       1,456   0%
   + save-some-buffers                                     15,634,438   5%
   + ido-hacks-execute-extended-command                     8,770,778   2%
+ tooltip-show-help-non-mode                                   25,588   0%
  mouse-fixup-help-message                                     17,960   0%
+ redisplay_internal (C function)                              11,170   0%
+ timer-event-handler                                           3,123   0%
  ...                                                               0   0%


                 reply	other threads:[~2021-02-02 22:38 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAJcAo8uby+yfV9OWiHeZ3MyQiuA3OWOdB9yfVSoYmoXE-9Bbfg@mail.gmail.com \
    --to=samologist@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).