[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Reworking loaddefs.el generation
From: |
Lars Ingebrigtsen |
Subject: |
Re: Reworking loaddefs.el generation |
Date: |
Wed, 01 Jun 2022 07:13:37 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
Stefan Monnier <monnier@iro.umontreal.ca> writes:
> The generation of `org.texi` from `org.org` is excruciatingly
> slow, indeed. Maybe we can better hide that latency with a more careful
> scheduling, but maybe we could also try to speed it up: I mean if you
> compare it to the time it takes for texi2pdf to process the result it's
> rather shameful (after all, the generation of the `org.texi` seems
> algorithmically a lot simpler).
If somebody want to poke at this, then perhaps this is a good starting
point:
(progn
(require 'ox-texinfo)
(with-temp-buffer
(insert-file-contents "~/src/emacs/trunk/doc/misc/org.org")
(setq default-directory (expand-file-name "~/src/emacs/trunk/doc/misc/"))
(profiler-start 'cpu)
(org-export-to-file 'texinfo "/tmp/org.texi"))
(profiler-stop)
(profiler-report))
1564 19% - org-export-resolve-fuzzy-link
looks pretty suspicious, for instance. (And that thing should have an
easier calling convention...)
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no