From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id qE/dL1P56WGIZgAAgWs5BA (envelope-from ) for ; Fri, 21 Jan 2022 01:07:47 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id SBo5LVP56WH+PgAA9RJhRA (envelope-from ) for ; Fri, 21 Jan 2022 01:07:47 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 5F8101389D for ; Fri, 21 Jan 2022 01:07:47 +0100 (CET) Received: from localhost ([::1]:36236 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nAhT0-0005iB-FB for larch@yhetil.org; Thu, 20 Jan 2022 19:07:46 -0500 Received: from eggs.gnu.org ([209.51.188.92]:53344) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nAgNF-0000vT-Ji for emacs-orgmode@gnu.org; Thu, 20 Jan 2022 17:57:45 -0500 Received: from [2607:f8b0:4864:20::536] (port=37563 helo=mail-pg1-x536.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nAgND-0001pC-Ao for emacs-orgmode@gnu.org; Thu, 20 Jan 2022 17:57:44 -0500 Received: by mail-pg1-x536.google.com with SMTP id e9so3098302pgn.4 for ; Thu, 20 Jan 2022 14:57:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:in-reply-to:references:date:message-id:mime-version; bh=Vsyv2zRccb4v3Q2FVGFEQPql5g1aJKwFSbdTFh6MTkU=; b=EqCRjhyXMJy4uOhTnTyBg4MWpJPZ+CLJk+TjZ/O2GmsrLY2cAE1XBUiOmdM3X7djBr K2ZYWSmhQeEOa+o6TniwsheRm36e5FtmxTx47WwI2DELZRFpYINa+JheCzJMJPvnGsT8 8n2XtuAs5OSjiHhGrAsUS/z0AmFxqzjz28iHbyKVTljSTA9t/BBxrQwfIy+6zROSMrCo Y2cnzZ2223IWxKr70J732bE/RuNIkRmgBoJmiGoW2fAHsX5XZ7Z8hzuj7VxptVYYhKtU ztvm7tbz/F3E9/lvkMkIkzPHSBjALGah7r1s142aYK6VCJ89LBNorpHUNhoOTGNOcD5Y szUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:in-reply-to:references:date :message-id:mime-version; bh=Vsyv2zRccb4v3Q2FVGFEQPql5g1aJKwFSbdTFh6MTkU=; b=HH6LYNxmm/pHICo046ontCU9JNxZJuZkyTKC3b7AFp6ITBzjP2ssoNdRc2/ky311vJ khe0n932+sLCDAI6zhtrZUe+PPYIkvjuL5mo0wDJER7ce0zI/5dYRoeYJ0CDMM4uL2IV o6i3kV0jJypC2pDdHcOgvktLEdh7+expBKZG1xVsOn9NkumuY9A6I+TPkvgumjsu6L7X DZxhky60a9zOE3wDj0DxKf6qMjCpyDQcYs69XKqdZfBkqqmm3XFVf8JP+DItexMpFYgp pRSuJg+Uk3z8nU8MCKDP/Y9ajks99sl/UvRpLOuFAV+5D657JFJmILamXgYfpd7U6qII RgyA== X-Gm-Message-State: AOAM5309KbPd4tpwuW6r8p0tuKxE0kdCTszG1Jdm8ibpFL7MeC/5cS4t zHtmEIDVe0FpORjTXe9RkK0= X-Google-Smtp-Source: ABdhPJzHzETGHwNNmePlmp8qvtcbNkyEmK5DQL2RtY9JY0nEYLtVEsuGx+SaGoeldkrNwlPP25d88A== X-Received: by 2002:a63:da4d:: with SMTP id l13mr788245pgj.550.1642719461258; Thu, 20 Jan 2022 14:57:41 -0800 (PST) Received: from localhost (199-230-10-51.PUBLIC.monkeybrains.net. [199.230.10.51]) by smtp.gmail.com with ESMTPSA id b9sm4334498pfm.154.2022.01.20.14.57.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Jan 2022 14:57:40 -0800 (PST) From: Josh Moller-Mara To: Ken Mankoff , Org-mode Subject: Re: Help speeding up Org iCal export In-Reply-To: References: <874ks0aotm.fsf@gmail.com> <875zcgz21l.fsf@nicolasgoaziou.fr> Date: Thu, 20 Jan 2022 14:57:38 -0800 Message-ID: <87h79yuial.fsf@cns.nyu.edu> MIME-Version: 1.0 Content-Type: text/plain X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::536 (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::536; envelope-from=j.mollermara@gmail.com; helo=mail-pg1-x536.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1642723667; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=Vsyv2zRccb4v3Q2FVGFEQPql5g1aJKwFSbdTFh6MTkU=; b=IXoiG81KymFwzEcIWVPWdn8VxPlsXPRkSKBFkiVQTzIA8e8+JzZ/wqVq9EF+UWM28yeY3a d824azSNKaD3IclHnHjrtNReK3V4BvDX204HZkPd13FhBhQfHfsX1F20bKfFyzagMHOPV3 YTjC8cpOcZuw8f7V3JFxacefToH2HLO80LPtDXeKFvTEmVH5IH5RlYpEHJjtUdNiBExbYa Sj3JPGHt3IehfUoKX7TUsutU3Ek1yemygvQ0V4XjWpgukTEVpwBsvGZx8TdQaVNohHwlij yIOMn/o7PJrhPNxxSqdKR2Tu2qWDIlrJBFX86IDtzcEC3DrVrBNyUjEYsakSGw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1642723667; a=rsa-sha256; cv=none; b=ONX4CtVfMql4IqTzcuhHcyC3Ko3rFrRhOVSV9qMsVsWixpF7G3+n8l+wv7OM+t43nkah2f tK79ntZX7JkhEPjMbuSKvfg91HFSKMUz37b0ePO2BC1gFXgxY0vwd7/rV6mylTaqsvLhzI YSb8c+B8yzPr7ahoNRpm+zW/Pz+PWERZE8nNx+8pe4W0wt+BpbSyY6lphQFkjbSdwUQza3 KfT/llvBq1UN5kVvJIvucRkJLRLp5hWEjJiEJA08AGK/PLM70lxdvgc2M9L+fkv/fh4i5p H2s9XYQDZ8jcjasOEUzZguxmCj6CWYJkfuW6pFPk/46yPX8qzrZNe0mZ5KaViw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=EqCRjhyX; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -4.32 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=EqCRjhyX; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 5F8101389D X-Spam-Score: -4.32 X-Migadu-Scanner: scn1.migadu.com X-TUID: Qy1jJXFyhKqA 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