From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id iL5RDVAIoGHPLgEAgWs5BA (envelope-from ) for ; Thu, 25 Nov 2021 23:04:00 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 0NbmCFAIoGGJQQAAbx9fmQ (envelope-from ) for ; Thu, 25 Nov 2021 22:04:00 +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 CF8622AB44 for ; Thu, 25 Nov 2021 23:03:59 +0100 (CET) Received: from localhost ([::1]:45878 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mqMqU-0000i4-7S for larch@yhetil.org; Thu, 25 Nov 2021 17:03:58 -0500 Received: from eggs.gnu.org ([209.51.188.92]:50326) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mqMpP-0000hw-Bm for emacs-orgmode@gnu.org; Thu, 25 Nov 2021 17:02:51 -0500 Received: from kamnitnik.top ([209.250.245.214]:42236) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mqMpN-0005t2-Db for emacs-orgmode@gnu.org; Thu, 25 Nov 2021 17:02:51 -0500 Received: from localhost (BSN-77-156-43.static.siol.net [193.77.156.43]) by kamnitnik.top (Postfix) with ESMTPSA id D4EE19C717; Thu, 25 Nov 2021 22:02:46 +0000 (UTC) From: To: Ihor Radchenko 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: <87pmqr2gka.fsf@localhost> References: <87im8mw2x1.fsf@miha-pc> <87pmqr2gka.fsf@localhost> Date: Thu, 25 Nov 2021 23:07:31 +0100 Message-ID: <878rxbzy70.fsf@miha-pc> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: none client-ip=209.250.245.214; envelope-from=jakanakaevangeli@chiru.no; helo=kamnitnik.top X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_NONE=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: , Cc: emacs-orgmode@gnu.org 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=1637877839; 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; bh=3iqGhD9JJRj6vpP1pD5jN2inUjNebKiXBy3tgw1G9Y4=; b=YHROcE49kEHbCtADhUrbtOnSESyVtWUj97onpocmnWp7xV7bAXE20ejnWe2TpV+wx8W8Ss dg1iwhM0wnCro1l6fp3X+XaRz6eGQOwtnnv5Q6zrjmpVE6XXL+XP4t6K/kmuLD6qwO0gXr XAHZamsZQjC7Ibsk3O30u2R2Z96M8FJFzqU6SJwSX8p/tOpRQT0AJL5/L9nHfs5YcZtUfr N3D7clzLL0zqVvzGiglsWAaajF7n/U5xfw6ixqlZEexJmCz0jyZVi9n9QnCSZwngmBye1t Kzv5GBUhJrgqAVSxBpVFuAEhD29MZj9tL+mrBHeA46uNe8ke8yMpFQY/iIkjqw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1637877839; a=rsa-sha256; cv=none; b=j3fGGRQQ4OSkpzeF3agqI1IflAPu+fCdlRKBuRffdPEQMLLBTQoW2d6PnWdUZFrLGe4mJh DJwZ5SxpGeam5yeAnX6Od/GMuP9wwaQbaTEWBhtyWcgV6IXkc/MLCY3bbsa9Enw+9iM+61 sVPCKW+Hj6CRjWuMDBIxtetAKWotJpEOWOfJsJNgfPDOzFSbf5AMAO5/j+AOeil7I9Rs/9 nVD/nGBbvdBJzqSOtjX+R6ocQ6OXfODuIQpxvYrWXJ1HH1erIdg2Y40eWCkCobqkz7uGqG J0NtBPrLfXd356DeyB/oDZi/ByiNUmn4vqgHaMF04NodcKddiDMxPP5aHPHYwQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; 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: -2.40 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; 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: CF8622AB44 X-Spam-Score: -2.40 X-Migadu-Scanner: scn0.migadu.com X-TUID: Sw6uiGiD76dT Ihor Radchenko writes: > 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 Indeed, bug is fixed with org-mote commit from Sat May 1 22:30:42 2021 +0200 (a2cb9b853d30fc301f4553d1556dba4ee6bc1ead) Thanks. (I don't know how to close an org-mode issue.)