From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 0IBvOsHgnGFuZwAAgWs5BA (envelope-from ) for ; Tue, 23 Nov 2021 13:38:25 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id KIg3NsHgnGHJLAAA1q6Kng (envelope-from ) for ; Tue, 23 Nov 2021 12:38:25 +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 87F1C555F for ; Tue, 23 Nov 2021 13:38:25 +0100 (CET) Received: from localhost ([::1]:56222 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mpV44-000190-LD for larch@yhetil.org; Tue, 23 Nov 2021 07:38:24 -0500 Received: from eggs.gnu.org ([209.51.188.92]:58318) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mpV2L-00014z-87 for emacs-orgmode@gnu.org; Tue, 23 Nov 2021 07:36:37 -0500 Received: from [2a00:1450:4864:20::231] (port=40761 helo=mail-lj1-x231.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mpV2I-0000a4-3x for emacs-orgmode@gnu.org; Tue, 23 Nov 2021 07:36:35 -0500 Received: by mail-lj1-x231.google.com with SMTP id u22so10802055lju.7 for ; Tue, 23 Nov 2021 04:36:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=6S8/YPSt1ze0VtFlp4i+6+GuOP3UgB3eh6GP+owtRPA=; b=W5l/TO5xSNSwlhrI01IvA57SCxfQfYPWWTOjUqPDI2PjbcnloevY/qcnXl6Le63riA h6dR6TQQzMzFA2gZ3jTSUJPinMu/XqE9U5JbpZIZ2z5jYiDnMvR3W0iihlGrs5uoHN2/ BKmpq9qCuGh3NusbkmCkM7g1IXpAj7Mty+7gmszgHFnPldPM3lkTcY8llKaVL5L7dUw/ J5FSDMqqwcC6D520BX32hwIvlINpvpaYFrpHc/rK1RbAKmmyBV2zt1fPRJfGHyGTiUZb XG17hB6ormiNwVAQP8oHLIux9Ley+4wVHVcU6fFdmG9uxsF8eOEzd6FXve3ooPh2IuED +2TQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=6S8/YPSt1ze0VtFlp4i+6+GuOP3UgB3eh6GP+owtRPA=; b=UwCvdmZea4o0Edbm+906XpMiCdsSq4UtsjeACIMjMAu0Vo/UygRV+DwLmdNc/MmYH1 EzVqssdmQ30kP2WO1W7im/SUu4s789d/At9eXH7RtmCR4zENx4smJ1Ny93+BeoUJYu8h Olvi71wRAQ5dMbDlZAyPnuheVxmhWSLOjLGtCPLKqHq80r0R6xmhNlSL5StMqBrXS4s+ sLTu4oSiXI7n5iOhn0HJvXSd4m9QW0wmKq7F0Ow80FI/TZy65oBVoBchFnv8WxHEFvO8 b44rcmUaE0xhl+sPLJcVwb5zAPlzRVZAXkWc5x5yNebFk2ufuI9SPgtSrYZzap53+d1e 4+yw== X-Gm-Message-State: AOAM530Cb3B1t+RVUNpJYiryzq9/VRBzJ7X5F1Rtzhqza65Y6I1iYQ+J R28SsMaS4JARqalfleg9C0oLA8Li8O+fhvpwpZM= X-Google-Smtp-Source: ABdhPJy1t0A44wvM7vxugPd7P+zIeZbyQjjSu6BeDueFNQYOWFJpfITqzz/mlWYbxCSvOno+rN3ffw== X-Received: by 2002:a2e:b0e4:: with SMTP id h4mr4685466ljl.117.1637670992628; Tue, 23 Nov 2021 04:36:32 -0800 (PST) Received: from localhost ([141.105.67.194]) by smtp.gmail.com with ESMTPSA id h1sm1281336lfu.277.2021.11.23.04.36.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Nov 2021 04:36:32 -0800 (PST) From: Ihor Radchenko To: jakanakaevangeli@chiru.no Subject: Re: Bug: org-tangle writes region for every single block [9.4.4 (9.4.4-elpa @ /home/miha/.config/emacs/elpa/org-20201222/)] In-Reply-To: <87im8mw2x1.fsf@miha-pc> References: <87im8mw2x1.fsf@miha-pc> Date: Tue, 23 Nov 2021 20:37:57 +0800 Message-ID: <87pmqr2gka.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::231 (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::231; envelope-from=yantar92@gmail.com; helo=mail-lj1-x231.google.com X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.1 / 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_ENVFROM_END_DIGIT=0.25, 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: , Cc: emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1637671105; 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=6S8/YPSt1ze0VtFlp4i+6+GuOP3UgB3eh6GP+owtRPA=; b=RSBRipKHXAv9RCOe0EQOmIh/xobh2eogx8cHOf1j/uudo94fKhbg7ef7W3BmKlP2mGEFL3 tb9LZgxhnkMSF2g/Teg/nrsk/X+v/NnWBQ6xEqQzzsE/Mdi3gTHcstLzXtSrnat/NyRRsJ IF7KCaY0m9Iu3kQBVBUsdrKPema3J3vlh1Atb6bii//LuUvhoLNDTFkKyFJjQqVXRgGqsa ufGO+JbwDswFhgO/1hnH14k5VBXuzTJTtRjl683jWQpX9RvuaQLLOmmF8YpAe5zRgUO8IG l091aeryn9snJtYDjVJ6RzE1L3s2jJLKjF1BcRAsDHG0cFEjRDeaNEsf8K1SQQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1637671105; a=rsa-sha256; cv=none; b=dQnf6sbL3ZTSKUqfJ6KIzA1EYQFj4W/TcL+psHAhqZoLvHoW9zRkWxKteYTPC8YK+oy59k 0iYMbpMETvAZfUMcaljt5zCuuEI5ThbiscKutnWqk7kHMzsH7KXxt1O7hhv26V6Vy++Ap3 jLBDkdcZO4qXZBMhy+DIQ0dKkfs7YShIei0rSV9DyJ+/ecaxnCfZQ/cdyuzqYwZxsJxiGR DvEgHGCpMHvQplliiASGaSR61GanN7E3iv9vFEZgIt/GtoT7ugk8oZIxffy9GGW35wSpRZ imqVt0WJ2n1EeuWg+VeE3oLZ1SR1JFOk0MX7HIgDykBUimaR060723TgrOdccg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="W5l/TO5x"; dmarc=pass (policy=none) header.from=gmail.com; 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.58 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="W5l/TO5x"; dmarc=pass (policy=none) header.from=gmail.com; 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: 87F1C555F X-Spam-Score: -3.58 X-Migadu-Scanner: scn1.migadu.com X-TUID: r0slREWrpuhQ jakanakaevangeli@chiru.no writes: > Tangling a file with a lot of src blocks can get quite slow because > write-region is called for each individual src block. > > On my machine it takes 8 seconds to tangle a file with 160 blocks of the > same language. Tangling the file over tramp would probably take about 5 > minutes. > > Perhaps it would be more optimal to only save each file at the end > of src block extraction. I am not sure if the bulk of tangling time is spent actually writing to disk. Can you try your problematic file on latest main? There are some improvements that should improve tangling speed significantly. Best, Ihor