From: Josh Moller-Mara <j.mollermara@gmail.com>
To: Ken Mankoff <mankoff@gmail.com>, Org-mode <emacs-orgmode@gnu.org>
Subject: Re: Help speeding up Org iCal export
Date: Thu, 20 Jan 2022 14:57:38 -0800 [thread overview]
Message-ID: <87h79yuial.fsf@cns.nyu.edu> (raw)
In-Reply-To: <CAFdBzEqndcjJU=4jb0MKr09Lu5WgQ5faW3mj2B7bufTKd+zxPQ@mail.gmail.com>
I'm running into this issue now.
One thing I noticed is that if you have broken links (and
org-export-with-broken-links is t), org-id-update-id-locations will be
run for every broken link it finds. This turns out to be quite slow and
unnecessary since no files will have changed in between
org-id-update-id-locations runs during export.
One hacky workaround is to temporarily disable
org-id-update-id-locations, like so:
(cl-letf (((symbol-function 'org-id-update-id-locations)
(lambda (&optional files silent) (message "Not updating locations"))))
(let ((org-export-with-broken-links t)
(gc-cons-threshold 80000000))
(org-icalendar-combine-agenda-files)))
The right solution would probably be to not have broken links in the
first place. :P
Or maybe org-id-update-id-locations could be debounced or cached in some way.
Best,
Josh
prev parent reply other threads:[~2022-01-21 0:07 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-28 0:24 [O] Help speeding up Org iCal export Ken Mankoff
2020-05-28 8:11 ` Eric S Fraga
2020-05-28 12:17 ` Nicolas Goaziou
2020-05-28 14:06 ` Ken Mankoff
2022-01-20 22:57 ` Josh Moller-Mara [this message]
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://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87h79yuial.fsf@cns.nyu.edu \
--to=j.mollermara@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=mankoff@gmail.com \
/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
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).