emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] ox-publish.el: Speed up org-publish-cache-file-needs-publishing


From: Emily Bourke
Subject: [PATCH] ox-publish.el: Speed up org-publish-cache-file-needs-publishing
Date: Fri, 01 Jan 2021 19:58:29 +0000

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: 0001-ox-publish.el-Speed-up-org-publish-cache-file-needs-.patch
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]