From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Bug: Org Table Performance Issue/Regression Date: Tue, 26 Jun 2018 11:58:53 +0200 Message-ID: <87lgb1swbm.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45729) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fXkkW-00021J-PV for emacs-orgmode@gnu.org; Tue, 26 Jun 2018 05:59:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fXkkS-0001KH-TI for emacs-orgmode@gnu.org; Tue, 26 Jun 2018 05:59:00 -0400 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:36931) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fXkkS-0001Ev-Ls for emacs-orgmode@gnu.org; Tue, 26 Jun 2018 05:58:56 -0400 In-Reply-To: (Tim Baumgard's message of "Sun, 10 Jun 2018 14:04:08 -0500") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Tim Baumgard Cc: emacs-orgmode@gnu.org Hello, Tim Baumgard writes: > I recently updated Emacs from 25.3 (Org mode v. 8.2.10) to 26.1 (Org mode > v. 9.1.9) and noticed a performance issue/regression in one of my Org fil= es that > contains a table that currently has nine columns, around 1,200 rows, and = uses > formulas. In 25.3, I could create a new row or use org-table-copy-down wi= thout > issues. In 26.1, there=E2=80=99s a multi-second delay each time I try to = do either of > these things. As mentioned below, this issue also occurs in the latest co= mmits > to both Emacs and Org mode. > > I did some profiling and found that garbage-collect was being called quit= e a > bit. I set gc-cons-threshold in both versions to a large value to effecti= vely > disable garbage collection and noticed two things: 1) it largely fixed the > performance issues=E2=80=94though performance still wasn=E2=80=99t as goo= d as it was in 25.3=E2=80=94and > 2) Emacs/Org mode was using about four times as much memory as it did aft= er > creating a new row and doing calling org-table-copy-down three > times. Specifically, Emacs 25.3 was using a little under 200 MB and Emacs= 26.3 > was using a around 800 MB. Could you send the result of your profiling (using both Elp and profiler would be nice) on an uncompiled Org? Thank you. Regards, --=20 Nicolas Goaziou