From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id WNVKLQQjoma8awEAqHPOHw:P1 (envelope-from ) for ; Thu, 25 Jul 2024 10:03:48 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id WNVKLQQjoma8awEAqHPOHw (envelope-from ) for ; Thu, 25 Jul 2024 12:03:48 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=ET95MVt3; dmarc=pass (policy=none) header.from=posteo.net; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1721901828; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc: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=rHFwSyyfV7HcKi6rEJae8oPerIfgKwMWqoPQhEpngTI=; b=TlJ+8sSa5D3Zvwi18UGtEC64naQ77PRN/J57xfkR9hOsDAyJLcvGMm68oVuLGeHyTZIPdK YlWGC+H79jmHKRFlgpXsesOv7KDJI71fkAuYjJRu7SNXjH9fu4spYjmIjHlQlC65LdzNBa 7nKAoiEa2M6IVp3+sM6goVF8UMGgxQU3J1DNQCbOuYcIuW9njv/AIpgp6QkS09zV7wYzJM va2C2rGHfHp7hApgjHRu4GqPqac2KNjTfVfE59BPkTr4loWw4lN/FkMW29ceINgXFy86/U 5mJTBm1OsmpZRO+2vJcgQaGpVv32gsqNky/l9wcGyD99WwFHzqA2YB79xiUsLQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1721901828; a=rsa-sha256; cv=none; b=tGhQ6encxPRVrIsJplFikfiBIbQkyhVFTCybjuccAek5/8P1EW20yPaJ40jMXHLaShC3rQ jy+oL2FfmXViHWJIQ/pgNBiDtKuxqL8Mil0ibkEpdZIA5XwHDTTHZQQ/wdNSvRbFK2Dec4 /0fMp/L1ppNZMWn/WOHJo4GJ9hYl7zXCxKpjKJZF4hEeo8ZWvbw2zCDwOCKjqBJVNSggwy 9VUjFSIb0bxQlAZtCqisrxyvBo7ljAuYIajeqcrulJkC+M7a5eJrRMV1fG5sXylhItySlP AmtVOXl6E/hprY7zwPSnpMaUXhmFRvz0+uAy9gTeh6rh2Q7gEkAX5IMVt8ReXg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=ET95MVt3; dmarc=pass (policy=none) header.from=posteo.net; 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" 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 90DF01696B for ; Thu, 25 Jul 2024 12:03:48 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sWvJT-00036F-Jy; Thu, 25 Jul 2024 06:03:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sWvJO-0002sH-9t for emacs-orgmode@gnu.org; Thu, 25 Jul 2024 06:03:02 -0400 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sWvJL-0004hs-9E for emacs-orgmode@gnu.org; Thu, 25 Jul 2024 06:03:01 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id E1CEF240027 for ; Thu, 25 Jul 2024 12:02:55 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1721901775; bh=NYXsOdDj4sLslHGVbRQwGXWKYZo4gqtuFQh4EIRxc6s=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=ET95MVt3D6IYz5CUiWGEIHEf3qlAm2SRZT9inEPUg8fbUpf9VUy5QrmHuJtissd/X isIN2ss23oa8VaPdHeC1Ld68zBnfNMvnUrKO0LAqHsUjjGFiODLF4ktWn3Lsf/6vea 5h0BHn9aCr+Go6NhWmhdSbr2AdeqpXQ3/q5JzyvaH1fUUBfgH/3EmW/Gp+dC8YB263 myH/4nKo15W4IbIQiGUaTak6ueusgvZnRQMh7ze3ISvC3B/YOtptDA/3F5Nczgs/eY FSukZKCEKhBevBKGZY6XbOFjMlIwksS2mqD94/+qwFBjpzD6blVUdRfaTlpafAvN8e d1GIrvO4Am4oQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4WV5zg2gLrz6tyZ; Thu, 25 Jul 2024 12:02:55 +0200 (CEST) From: Ihor Radchenko To: Orm Finnendahl Cc: Org mailing list Subject: Re: multipage html output In-Reply-To: References: <87wmlp38gr.fsf@localhost> <874j8gz9qh.fsf@localhost> <87bk2o2o2m.fsf@localhost> <87sew011c6.fsf@localhost> <87frrzdrbz.fsf@localhost> Date: Thu, 25 Jul 2024 10:04:21 +0000 Message-ID: <87plr14wka.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Queue-Id: 90DF01696B X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -9.64 X-Spam-Score: -9.64 X-TUID: Gzo1zZMp3ZDj Orm Finnendahl writes: > org-export--write-ouput inserts the output string into a temp-buffer > before writing it to file. When exporting to multipage I found out > that this imposes a pretty significant performance hit. That's why I > write the output string directly to file in my own code. > > Is it sensitive to set an optional argument to circumvent the buffer > insert (or circumvent it altogether)? There is no particular reason why we use temporary buffer to write to file. However, I am surprised that it produces performance hit - `with-temp-buffer' should disable all kinds of hooks, except in distributions like Doom that abuse advices and hook into buffer creation unconditionally. Do you know the source of the performance problem? Are you sure that it is creating the buffer and is not related to the packages you have installed? -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at