Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ performance: Speed up the exports #598

Merged
merged 3 commits into from
Mar 18, 2022
Merged

Conversation

kaushalmodi
Copy link
Owner

@kaushalmodi kaushalmodi commented Mar 18, 2022

  • Reduce number of fresh org-mode invocations - dd09f72 + 7c8c3be
  • Reduce repeated find-file calls to the same file during a single export run - c450ed0

A find-file used to happen for each link searched in an external Org
file when exported each subtree post when using the all-subtrees
option of the wim exporting function.

Now the export function is allowed to open as many files and buffers
as needed, but they are now killed at the very end of each export.
This immensely improves the exporting speed when doing C-c C-e H A.

- Renamed the old `org-hugo--after-export-function` to
  `org-hugo--after-1-export-function`.
- Added new hook function that's called after **all** exports are
  done: `org-hugo--after-all-exports-function`.
@kaushalmodi kaushalmodi merged commit defdec2 into main Mar 18, 2022
@kaushalmodi kaushalmodi deleted the speedup-org-mode-loading branch March 18, 2022 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant