From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id KNEcNe812GBvUwAAgWs5BA (envelope-from ) for ; Sun, 27 Jun 2021 10:25:19 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id iCC9MO812GBkLwAAB5/wlQ (envelope-from ) for ; Sun, 27 Jun 2021 08:25:19 +0000 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 F3B5A21C5F for ; Sun, 27 Jun 2021 10:25:18 +0200 (CEST) Received: from localhost ([::1]:37542 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lxQ6O-0001Ru-4o for larch@yhetil.org; Sun, 27 Jun 2021 04:25:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38452) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lxQ1q-0001QQ-Hv for emacs-orgmode@gnu.org; Sun, 27 Jun 2021 04:20:34 -0400 Received: from mail-he1eur01on0723.outbound.protection.outlook.com ([2a01:111:f400:fe1e::723]:32674 helo=EUR01-HE1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lxQ1o-0005P8-7e for emacs-orgmode@gnu.org; Sun, 27 Jun 2021 04:20:34 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lZW8Y+N/CdYmLidarKic61XNmDAgsv6FLKpmaS+mvRvXHimO7FLqbLUvfITjwbqxtbk3l1Y0A+/SPW6guSZCscJoKMwUe4rw3SIPLfC8yuB4SQvodC0QUdVnr4Q9ykyUS0bTVj71FMNgBgeNDkyKR5xPXeSLgjbuMZpzp7y4PVtMgbc0sf1jpp9xaTHYmwSr4k17FlAuGqI3U/6A3ymAh7aUAzTZk2SU2vKaBDI0FFsMI6i2V+uTgbYepI61VIl4Hjqo/D9RlqOHBPCZxDyGE+9qIj8vz0/P18++opz6/5djV6t2k1lWsCkzcr+NXKncdA3L6BF8iB/jOuCmL+8U7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=U12qubIzUg3lU1UsBpTWmDFdRmd+3pE7L0gxJ9eURuA=; b=LFS8E5hhtKcBqhS86uwwVHsxnK1HSw3gFgug+CMAiY/OhOSfVgS+OvcE1Lo1ExIk/BrZU6scE9R43sEPDwyClB6ZZsM4FR4Jy5klC06tqoVIIx/g/L6NYJXDEQTY39z2KriXyGv8lYlBho/956BVMn3JZQgBZnvWGaSG/9UHpcdceqxcrpzS1EG88C8N2pLP2wJ4GIRm8meDFmsZsqPvkvvmbSAq5VEBqASpPtcCMXNFjErfL78Y3tqoz4hgWhmt8Jjs5BxXnwOih1p+srLLro8VVQc1sRY9sasxEGY+Nug43WyJrt2624BfMRTHM9iO7jl3KPpOnRTfGoK5P0hRQw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=whil.se; dmarc=pass action=none header.from=whil.se; dkim=pass header.d=whil.se; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Wikstrom.onmicrosoft.com; s=selector2-Wikstrom-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=U12qubIzUg3lU1UsBpTWmDFdRmd+3pE7L0gxJ9eURuA=; b=lA19Bk8ejGKehQ642MwfPvGjIBoYAZWhJ8bhdDsEUMwDMS3AwbeteCBWwlyB5Z3viqYXhLgxXV1eekeZn/iTIFWsTUXJWjbPQx6OiVH6BxP/Ar+sEeYk+qs2JXFS4DgysEbFHbAGcyKCaHAJev1VzbGyfmU6G+NJ4juyrzlKu3Q= Received: from HE1PR02MB3177.eurprd02.prod.outlook.com (2603:10a6:7:2e::26) by HE1PR02MB3177.eurprd02.prod.outlook.com (2603:10a6:7:2e::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4242.23; Sun, 27 Jun 2021 08:15:27 +0000 Received: from HE1PR02MB3177.eurprd02.prod.outlook.com ([fe80::add2:c5f0:a4a:a0c7]) by HE1PR02MB3177.eurprd02.prod.outlook.com ([fe80::add2:c5f0:a4a:a0c7%6]) with mapi id 15.20.4242.029; Sun, 27 Jun 2021 08:15:27 +0000 From: =?iso-8859-1?Q?Gustav_Wikstr=F6m?= To: "emacs-orgmode@gnu.org" Subject: FYI Speedup of publish command in master Thread-Topic: FYI Speedup of publish command in master Thread-Index: AQHXayg1hs75h/j/CEa+a4SYXXstgA== Date: Sun, 27 Jun 2021 08:15:27 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [5.150.207.75] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: dc6b213c-593f-4e35-08fc-08d93943b8d9 x-ms-traffictypediagnostic: HE1PR02MB3177: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:2582; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: /16HmSCrapzXBXRjPA/OBWx8DMZ6bHf276ILboZh+6/iM7gEmvRfVfE33LRn4f8zzPQu4yUkxYwBiI2L1e5xm6NYW3i6y4XiizC88h2VDysH1+SJannhtbaqqm9YP3a8H/nrqqqEO4YHwThmG+xragNTsYEm3Sog/vFH7j687/eTTY7ixopPoXT0Kaiw/FvXznKmiDPJMj9hqCwBKdKABfmjkR0OYkd+GKj/lb/tuVpGWTDc2hEj+NCXjj68b5PntJF374v7kLfdJF2DrehuDsWlexFUVow590fz0xF0okcmVMtQ2c5ybdYSjifrbzIcDFmDOS8cMwfq6gEI8AojiGlCsmJ5EdrEhKgJ40HOYns4fhNmIZcEPdxV9WP6ec5USHZOhUfbJ3YPIhVp3A/lcq8gitusGB/RNoyP/xT6eOaTO5JIS37H7q8Btbv8kQ0e3RCXHsSOjWuSPXTvugJTmzk6wZnq9wEh6VSiekUZJ8KJ0XzGJ+DRCdAJw8e+IHjUW73E3x5umH7YaufCxdtodB87neJrmZlOzSVZzouv4M9JdoVO1eyHTP+0djYdGoBm2OV4zLNgKM5dzv6rPWoiNikYGKXsnMXhnQeYP8vQlbc= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:HE1PR02MB3177.eurprd02.prod.outlook.com; PTR:; CAT:NONE; SFS:(346002)(136003)(366004)(376002)(396003)(39830400003)(86362001)(38100700002)(122000001)(6916009)(7696005)(6506007)(9686003)(26005)(186003)(316002)(33656002)(55016002)(76116006)(66476007)(66946007)(8936002)(478600001)(8676002)(2906002)(4744005)(64756008)(52536014)(66446008)(71200400001)(66556008)(5660300002); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?Q?xt8ILMbT3BRK8vitRuCgVdNNEL09Kchck6qUEAD8L25gyLnlE4i3vjVCkR?= =?iso-8859-1?Q?Q1ffMm8JlPbTN6xpTwPkOTFoe9vRoNtjKvV+IU/d0mEcmoo9j9WfnidR7H?= =?iso-8859-1?Q?n8R6F24bEA0cIrUmfg2TzFgxENzSg/rNWK0kP4KSeUP+poJA8K3qwR/kXB?= =?iso-8859-1?Q?d7sviZLYkSBGncatr7KJvjPMHisbA7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1?Q?RA8XOjiKLy/beG+b7P0L6gblBAc9PBQDPgxJgp7IJsZZNLgvlg0lMSfBIN?= =?iso-8859-1?Q?dWp31YfJ2jp61YVyP9nfFuDCGYBNPcbr2lIIx16qgs263RXZQgMp05ISHR?= =?iso-8859-1?Q?xnF4JL689Cg8s8tsV0i3HaQMmiSeXbll1hAXzeKjWn1aiSUVJyfE1ptkH0?= =?iso-8859-1?Q?CkTAbKPuh4FduxOqgxe3tdJp1z8ft2MKmQNZZgBjVnreNoCRo8/V56K/rR?= =?iso-8859-1?Q?RBembcQvDtCBICPfNOKjUYpdkf9dvmQizKS/KlaQ97QjJFI=3D?= x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: whil.se X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: HE1PR02MB3177.eurprd02.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: dc6b213c-593f-4e35-08fc-08d93943b8d9 X-MS-Exchange-CrossTenant-originalarrivaltime: 27 Jun 2021 08:15:27.4890 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3f6cdb11-323f-43c4-adf3-a2c5097674cd X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: nycv0HHybZsfh9yVDGjm+iYAcoHAchPPmFtJnVrkWZjq7UNeOqMxx+CD5BU/Cn2D X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR02MB3177 Received-SPF: pass client-ip=2a01:111:f400:fe1e::723; envelope-from=gustav@whil.se; helo=EUR01-HE1-obe.outbound.protection.outlook.com X-Spam_score_int: 0 X-Spam_score: -0.0 X-Spam_bar: / X-Spam_report: (-0.0 / 5.0 requ) BAYES_20=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, SPF_HELO_PASS=-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.23 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 ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1624782319; 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: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=U12qubIzUg3lU1UsBpTWmDFdRmd+3pE7L0gxJ9eURuA=; b=Vzt44zcuvyPJplC+xvlxCqe3Lgh4NcaFoErWyb5/gHLixpT8+IlmC4SEKUlnKkyRDvzWCk 3A5gupI9tz+xYkKRLC3Yr8OINDbP1xy1uvtuOaM9ehTlmRPw25gXroB6cNqvrdA/uuBP51 thshfqRSqpOyvrO/98AKVQER2gODJ3/kOvDN9puQFtuLW9RhhV88vr37W1WDLlKKzbRxJX ithB2W36JP8zjPyfAr9Tgy32pgItROssWXtO8NtsDG0jf3I00rDw6+8GFiwabitKZZP46N u1IcDl8g75TAKr0k1493YsR0xORc46KAK12P7TzAk6JutIv8aotiySWEovlCSA== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1624782319; a=rsa-sha256; cv=pass; b=AxeyDUoGGcvSI2DvE+jZkpfjLfuC9v35azlj7BCvKpI3pNuJCZVz97uT6IPRmKSjK5kzKm vEhJ32W4QsSySukQycLJjq3Bx6dvE6HTdrhBlQtEl6930cpIJQUUBvor6G9GHuNiNC7sBu Q75Z+0LEehUhjLYFDXgYPleIuHI7odLSt6edx1n2lZcGv/3MWMKbQSUwRqSQjrqUqNpEli T5PG8+BSITYREZiS3VPhHwUmFbGwjmVjiLCxXx6Z5beT2/YhgBjrHXj65CuxgdVEzjGUjb MXmawm672VVaK1/2eNHAg3juF0t6/OSgDR69nqHNu6RtG+XTWaCYp+dwyFa71w== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=Wikstrom.onmicrosoft.com header.s=selector2-Wikstrom-onmicrosoft-com header.b=lA19Bk8e; arc=pass ("microsoft.com:s=arcselector9901:i=1"); spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -3.63 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=Wikstrom.onmicrosoft.com header.s=selector2-Wikstrom-onmicrosoft-com header.b=lA19Bk8e; arc=pass ("microsoft.com:s=arcselector9901:i=1"); dmarc=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: F3B5A21C5F X-Spam-Score: -3.63 X-Migadu-Scanner: scn1.migadu.com X-TUID: 8oTdze6580wu Hi,=0A= =0A= In a similar vein as the speedups of scanning for IDs that was made a while= back, there now is a speedup for org publish as well. Soon to be pushed to= code.orgmode.org (we're still using that, aren't we?) with commit aa0fa8c7= 5.=0A= =0A= The speedup is seen when scanning through files to decide if an existing ca= che can be used or not.=0A= =0A= A note on the topic, fwiw. Loading an Org mode file using find-file is very= slow. So when there is a reason for looking through the content of Org mod= e files, or any file for that matter, and there is no reason for triggering= hooks, consider instead inserting the content of the file in a delay-mode-= hooks macro within a temporary buffer (using the with-temp-buffer macro).= =0A= =0A= Example:=0A= *Instead of*:=0A= (find-file path-to-file)=0A= ;; do stuff=0A= (...)=0A= ;; clean up state=0A= (kill-buffer ...)=0A= =0A= *Consider*:=0A= (with-temp-buffer=0A= (delay-mode-hooks=0A= (insert-file-contents path-to-file)=0A= ;; do stuff=0A= (...)))=0A= =0A= Best=0A= Gustav=