From: Emily Bourke <undergroundquizscene@protonmail.com> To: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org> Subject: [PATCH] ox-publish.el: Speed up org-publish-cache-file-needs-publishing Date: Fri, 01 Jan 2021 19:58:29 +0000 Message-ID: <OfdVIrkD5F624hYL-8RdJ5OLPKgi9CuuAwn8d6wPv2QS52VQAyvh9jSagdldoir66UVdEM1v_4oBR01jbvMC7HbvnECUEl4ShY4XplndClY=@protonmail.com> (raw) [-- Attachment #1: Type: text/plain, Size: 474 bytes --] Hi, I found publishing when there were no changes to be slower than expected. Profiling showed me that `org-publish-cache-file-needs-publishing' was invoking the `after-find-file' hooks, which I don't think is necessary. I've changed it to avoid doing that, by using `with-temp-buffer' and `insert-file-contents', and noticed a significant increase in speed. Is there any reason I'm missing for using `find-file-noselect' in this case? Best wishes, Emily Bourke [-- Attachment #2: 0001-ox-publish.el-Speed-up-org-publish-cache-file-needs-.patch --] [-- Type: application/octet-stream, Size: 2742 bytes --]
next reply other threads:[~2021-01-01 19:59 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-01-01 19:58 Emily Bourke [this message] 2021-01-04 3:28 ` Kyle Meyer 2021-01-06 20:58 ` Emily Bourke 2021-01-07 1:11 ` Dr. Arne Babenhauserheide
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://orgmode.org * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to='OfdVIrkD5F624hYL-8RdJ5OLPKgi9CuuAwn8d6wPv2QS52VQAyvh9jSagdldoir66UVdEM1v_4oBR01jbvMC7HbvnECUEl4ShY4XplndClY=@protonmail.com' \ --to=undergroundquizscene@protonmail.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
Org-mode mailing list This inbox may be cloned and mirrored by anyone: git clone --mirror https://orgmode.org/list/0 list/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 list list/ https://orgmode.org/list \ emacs-orgmode@gnu.org public-inbox-index list Example config snippet for mirrors. Newsgroups are available over NNTP: nntp://news.yhetil.org/yhetil.emacs.orgmode nntp://news.gmane.io/gmane.emacs.orgmode AGPL code for this site: git clone https://public-inbox.org/public-inbox.git