emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Ihor Radchenko <yantar92@gmail.com>
To: emacs-orgmode@gnu.org
Subject: [BUG] make test is extremely slow since b3cc2f793 [9.5.1 (9.5.1-g984367 @ /home/yantar92/.emacs.d/straight/build/org/)]
Date: Sat, 04 Dec 2021 13:37:22 +0800	[thread overview]
Message-ID: <877dclj5gt.fsf@localhost> (raw)

Hi,

I noticed that make test became extremely slow recently.
The first bottleneck can be seen in

make BTEST_RE="^test-org-cite/adjust-note" test

passed  1/1  test-org-cite/adjust-note (12.321278 sec)

The test takes 12sec!
Moreover, subsequent tests (even not related to org-cite) become slower,
presumably because we overuse Emacs memory.

I am not using org-cite much myself, but I imagine that ordinary users
may also suffer from a similar performance issues after multiple
exports.

The profiler report shows that org-cite-get-processor may be the cause:

        5794  91%                - ert-run-test
        5794  91%                 - ert--run-test-internal
        5794  91%                  - #<lambda 0x5c69d99ea013bd4>
        4813  75%                   - let
        4813  75%                    - let*
        4813  75%                     - condition-case
        4813  75%                      - let
        4813  75%                       - list
        4813  75%                        - cons
        4813  75%                         - mapcar
         516   8%                          - #<lambda -0xebdf3f4ac8552e7>
         516   8%                           + test-org-cite--export-with-rule
         497   7%                          - #<lambda -0xebde86ea74e52e7>
         497   7%                           + test-org-cite--export-with-rule
         417   6%                          - #<lambda -0xebdf3f4b1fe52e7>
         417   6%                           + test-org-cite--export-with-rule
         398   6%                          - #<lambda -0xebdfc57f09452e7>
         398   6%                           + test-org-cite--export-with-rule
         397   6%                          - #<lambda -0xebde86e9e4b52e7>
         397   6%                           + test-org-cite--export-with-rule
         393   6%                          - #<lambda -0xebdfc57ded652e7>
         393   6%                           + test-org-cite--export-with-rule
         389   6%                          - #<lambda -0xebdce06d12652e7>
         389   6%                           + test-org-cite--export-with-rule
         377   5%                          - #<lambda -0xebde86e96a852e7>
         377   5%                           + test-org-cite--export-with-rule
         377   5%                          - #<lambda -0xebde86e989552e7>
         377   5%                           + test-org-cite--export-with-rule
         368   5%                          - #<lambda -0xebdfc57f3d952e7>
         368   5%                           + test-org-cite--export-with-rule
         347   5%                          - #<lambda -0xebdce06cb7d52e7>
         347   5%                           + test-org-cite--export-with-rule
         337   5%                          - #<lambda -0xebdfc57f51352e7>
         337   5%                           + test-org-cite--export-with-rule
         981  15%                   - let*
         981  15%                    - condition-case
         981  15%                     - let
         981  15%                      - list
         981  15%                       - test-org-cite--export-with-rule
         981  15%                        - let
         981  15%                         - let
         981  15%                          - save-current-buffer
         981  15%                           - unwind-protect
         981  15%                            - progn
         942  14%                             - let
         942  14%                              - let
         942  14%                               - org-trim
         942  14%                                - org-export-as
         398   6%                                 - org-cite-store-export-processor
         224   3%                                  - org-cite-processor-has-capability-p
         224   3%                                     org-cite-get-processor
         174   2%                                    org-cite-get-processor
         232   3%                                 - org-cite-finalize-export
         232   3%                                    org-cite-get-processor
         214   3%                                 - org-cite-process-citations
         214   3%                                  - org-cite-export-citation
         214   3%                                     org-cite-get-processor
          30   0%                                 + org-export-copy-buffer
          29   0%                                 + org-babel-exp-process-buffer
          20   0%                                 + run-hook-with-args
          10   0%                                   org-set-regexps-and-options
           9   0%                                 + org-export-data
          20   0%                             + org-mode
          19   0%                             + font-lock-ensure
          62   0%                + #<compiled -0x15985ab8cfaa100a>
          20   0%                + #<compiled 0x1ebe2226a11f1053>

Best,
Ihor


             reply	other threads:[~2021-12-04  5:36 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-04  5:37 Ihor Radchenko [this message]
2021-12-04 17:11 ` [BUG] make test is extremely slow since b3cc2f793 [9.5.1 (9.5.1-g984367 @ /home/yantar92/.emacs.d/straight/build/org/)] Nicolas Goaziou
2021-12-05  3:53   ` Ihor Radchenko
2021-12-05  9:10     ` Nicolas Goaziou
2021-12-06 14:01       ` Kaushal Modi
2021-12-06 14:43         ` Ihor Radchenko

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=877dclj5gt.fsf@localhost \
    --to=yantar92@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).