all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [BUG] make test is extremely slow since b3cc2f793 [9.5.1 (9.5.1-g984367 @ /home/yantar92/.emacs.d/straight/build/org/)]
@ 2021-12-04  5:37 Ihor Radchenko
  2021-12-04 17:11 ` Nicolas Goaziou
  0 siblings, 1 reply; 6+ messages in thread
From: Ihor Radchenko @ 2021-12-04  5:37 UTC (permalink / raw)
  To: emacs-orgmode

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


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

end of thread, other threads:[~2021-12-06 14:42 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-12-04  5:37 [BUG] make test is extremely slow since b3cc2f793 [9.5.1 (9.5.1-g984367 @ /home/yantar92/.emacs.d/straight/build/org/)] Ihor Radchenko
2021-12-04 17:11 ` 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

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.