From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 7xqkK0/a6V9kLgAA0tVLHw (envelope-from ) for ; Mon, 28 Dec 2020 13:14:55 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id yEMiJ0/a6V+LSQAAB5/wlQ (envelope-from ) for ; Mon, 28 Dec 2020 13:14:55 +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 0B439940500 for ; Mon, 28 Dec 2020 13:14:55 +0000 (UTC) Received: from localhost ([::1]:49902 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ktsMP-00046P-UD for larch@yhetil.org; Mon, 28 Dec 2020 08:14:54 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:40220) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ktrEl-0004LX-DN for emacs-orgmode@gnu.org; Mon, 28 Dec 2020 07:02:55 -0500 Received: from chiru.no ([142.4.209.132]:48402) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1ktrEj-00066E-SI for emacs-orgmode@gnu.org; Mon, 28 Dec 2020 07:02:55 -0500 Received: from localhost (BSN-77-156-43.static.siol.net [193.77.156.43]) by chiru.no (Postfix) with ESMTPSA id D13C1128001C for ; Mon, 28 Dec 2020 12:02:51 +0000 (UTC) From: jakanakaevangeli@chiru.no To: emacs-orgmode@gnu.org Subject: Bug: org-tangle writes region for every single block [9.4.4 (9.4.4-elpa @ /home/miha/.config/emacs/elpa/org-20201222/)] Date: Mon, 28 Dec 2020 13:06:18 +0100 Message-ID: <87im8mw2x1.fsf@miha-pc> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: none client-ip=142.4.209.132; envelope-from=jakanakaevangeli@chiru.no; helo=chiru.no 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_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Mon, 28 Dec 2020 08:12:13 -0500 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 X-Migadu-Spam-Score: -1.82 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=temperror reason="server fail" header.from=chiru.no (policy=temperror); 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: 0B439940500 X-Spam-Score: -1.82 X-Migadu-Scanner: scn0.migadu.com X-TUID: WKBbS2SIPq9w Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See https://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org mailing list. ------------------------------------------------------------------------ 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. Emacs : GNU Emacs 27.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.22, cairo version 1.17.3) of 2020-08-28 Package: Org mode version 9.4.4 (9.4.4-elpa @ /home/miha/.config/emacs/elpa/org-20201222/)