From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id OFU0OS8flGO8RwEAbAwnHQ (envelope-from ) for ; Sat, 10 Dec 2022 06:54:56 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id IP9COS8flGNBUgAAauVa8A (envelope-from ) for ; Sat, 10 Dec 2022 06:54:55 +0100 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 9A6121969F for ; Sat, 10 Dec 2022 06:54:54 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p3so8-0004bW-2S; Sat, 10 Dec 2022 00:53:56 -0500 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 1p3so5-0004b1-RG for emacs-orgmode@gnu.org; Sat, 10 Dec 2022 00:53:54 -0500 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 1p3so3-0002ET-58 for emacs-orgmode@gnu.org; Sat, 10 Dec 2022 00:53:52 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 4D4F0240026 for ; Sat, 10 Dec 2022 06:53:47 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1670651627; bh=3z9WU3EHzRI02kStoup79tR5hLxVoVj+1zsjPOfTtWY=; h=From:To:Cc:Subject:Date:From; b=CzrVALxWTo/2jmjIZmtrU7B4ftRTpOjsNT25TnRBVvh1ID6T8Rj8JGiqL7CztW+QC cgjB9sfk3WUMT+DdPeAPhIS9hIycoKx2Jy5ceDej2LJg7t3nsPDbO6uHZ1kSmK2o3B KpazHR3mXVPNHrq8eecGKZ6jpGxIZUIqZA7Utwl7jPZdCb6Oh2APvlBT96LSMxX1aC 5B7e/OrB3zFWcpJxnz6ilo8fUsaY/Ktn4my7lfxlZJHgpzTznm/RqxH9TaXShBkzGm Q9135CXPj9nWTK3rYR6mGFne60a5mkv64Rkk9YfK8AUzhUPrUQVAYxiTEYlpAc3Dh9 l2+LhDOfTC+YQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4NTcWt4SXHz9rxH; Sat, 10 Dec 2022 06:53:46 +0100 (CET) From: Ihor Radchenko To: "Majzoub, Eric" Cc: "emacs-orgmode@gnu.org" Subject: Re: bash code block runs slow on org 9.6 In-Reply-To: <26e284c725a47bd44a11a12c0b61473187613bf3.camel@umsystem.edu> References: <26e284c725a47bd44a11a12c0b61473187613bf3.camel@umsystem.edu> Date: Sat, 10 Dec 2022 05:53:44 +0000 Message-ID: <87edt7st1z.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: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1670651695; 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=jgrj0LugHn8PU9dUSgadXhY9fUKgz48IDlEoO2Gk8MM=; b=s8NrNDgucKunfpV4Fr8Yy66MeMnw5Ey3vhbd3JfwVr8DAkMidFmVuGHx5bhkaCGQHjwHoP cKVkyziWeRar0VVxxhB+6wXkGpr6+wtwKUOWguPajOfl59cuJD4XtapfMdEKYH0o6+oieg vSg8OzgUEpoxHZB9cDVBwhhw8alP91781QodMPNSijcs7SsTuRZwcVD1IYgiDUEnRoWWjM L6djuRJm3xPAgNXIoTDeakthjRv/BRGmJCLxBktI33IeJNE+G8i1d/GqeLvXcraWmSTqru C4d2usZDWX9Y+QAj4Bg+2a1prdcGzwUFjmLODh92KXcZFSLYFWK6NigEUND/cA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1670651695; a=rsa-sha256; cv=none; b=NmCS1kM/H5siQ8BrvuQwkRtzFffO96pIwn9Ba7YBlk6GFnU9mgD4eALHIrSrDs7opE4DES xiH++pndQbGWuwuMSKcXoNyOpn7jh+1lNE8+k9zErMxvlZ+9Kx0nWd4/VF9SNyV8b8heo/ fisWaVa9vuHOzc0P414EtBP1Fgf+VZQvwqnj6bu8AlQ1fFJobtZ8n4zuEO25aw3d8eZukc VPH2xv4f6PHMYgNFDEVJWm7ntiJDSmLkC4Kk4aOWSjU5CtD2X94/JliAQWr9GGugVfpR9N 70oWC2xUokmTPd7f4HJTQZf5OfPn3NWyL6lBGuMMy9ZCP9DEjdFxb7nkfgzbQA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=CzrVALxW; 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" X-Migadu-Spam-Score: -3.64 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=CzrVALxW; 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" X-Migadu-Queue-Id: 9A6121969F X-Spam-Score: -3.64 X-Migadu-Scanner: scn1.migadu.com X-TUID: SamfjPYr1T1N "Majzoub, Eric" writes: > I've got a code block that looks like the following. > > #+name: read_csv > #+begin_src bash :results replace :exports none > cat ./file.csv | gawk -f ./awkfile.awk | tee .tmp1.dat; > #+end_src > > This runs essentially instantaneously in org 9.5.5, but it takes much > longer, about 2 seconds or more on org 9.6, using the first release > version. Pre-release versions of 9.6 were even slower, so it seems it's > improved. But still, it's a lot slower than 9.5.5. What can I do to > diagnose the slowdown? I partially solved the slowdown in https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=76a725317 There is still some slowdown originated from table alignment. We now use a more accurate approach to calculate string width, which gives performance penalty. If needed, table alignment might also be optimized, but it will not be trivial. For diagnosing slowdowns, you may refer to https://list.orgmode.org/orgmode/87ee2nlslt.fsf@localhost/ Let me know if the latest bugfix branch gives you acceptable performance. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at