-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
org-html-format-latex: Avoid unnecessary string allocation
* lisp/ox.el (org-export--generate-copy-script): Add new optional arguments to limit what is being copied. (org-export-copy-buffer): Allow copying into provided buffer and copy selectively passing the new optional arguments to `org-export--generate-copy-script'. Do not try to check if all the local variable values are `read'able - it is only needed during async export. * lisp/ox-html.el (org-html-format-latex): Re-use the same hidden buffer during export. Only copy local variables into that buffer. This commit avoids excessive calls to `org-mode' and copying the exported buffer contents for every single latex fragment. The result is lower impact on GC and better overall performance. Reported-by: Rudolf Adamkovič <salutis@me.com> Link: https://list.orgmode.org/m2zgef774u.fsf@me.com/T/#t
- Loading branch information
Showing
2 changed files
with
85 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters