From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: working with tables can be quite painful... Date: Mon, 19 Sep 2016 09:33:24 +0100 Message-ID: <87zin4z3u3.fsf@ucl.ac.uk> References: <87r38jew14.fsf@ucl.ac.uk> <9ae6591e2754413885a96e19c2455472@HE1PR01MB1898.eurprd01.prod.exchangelabs.com> Reply-To: Eric S Fraga Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36644) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1blwPw-00020v-44 for emacs-orgmode@gnu.org; Mon, 19 Sep 2016 07:07:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1blwPr-0003uE-R5 for emacs-orgmode@gnu.org; Mon, 19 Sep 2016 07:07:19 -0400 Received: from mail-eopbgr40117.outbound.protection.outlook.com ([40.107.4.117]:54292 helo=EUR03-DB5-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1blwPr-0003tl-Ff for emacs-orgmode@gnu.org; Mon, 19 Sep 2016 07:07:15 -0400 In-Reply-To: <9ae6591e2754413885a96e19c2455472@HE1PR01MB1898.eurprd01.prod.exchangelabs.com> (Nicolas Goaziou's message of "Sat, 17 Sep 2016 08:48:29 +0000") 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: Emacs Org mode mailing list On Saturday, 17 Sep 2016 at 08:48, Nicolas Goaziou wrote: [...] > Could you send a profiler report so that I can get a better glimpse on > what part of `org-table-align' is lagging? Hi Nicolas, this morning, working on the same table is much less painful. I've run the profile and did some movements and changes to the table and here is the output from the profiler (I can send you the full report if you wish). I know that if I narrow the buffer to just the section (headline and contents) that contains the table, the performance is better. Anecdotally, it would seem that the performance degrades over time so I wonder if there is a cache issue? My gut feeling is that it is related to fontification as well. --8<---------------cut here---------------start------------->8--- - command-execute 2420 53% - call-interactively 2420 53% - funcall-interactively 2325 51% - pabbrev-expand-maybe 1244 27% - if 1244 27% - pabbrev-expand-maybe-full 1244 27% - cond 1244 27% - pabbrev-call-previous-tab-binding 1205 26% - let 1205 26% - if 1205 26% - let 1205 26% - if 1205 26% - funcall 1205 26% - org-cycle 1205 26% - call-interactively 1198 26% - funcall-interactively 1198 26% - org-table-next-field 1198 26% - org-table-align 1122 24% + font-lock-fontify-region 258 5% + mapcar 219 4% + org-indent-refresh-maybe 152 3% apply 45 0% org-element--cache-before-change 32 0% org-element--cache-after-change 32 0% + jit-lock-after-change 16 0% org-table-begin 9 0% + org-table-maybe-eval-formula 4 0% org-table-end 4 0% --8<---------------cut here---------------end--------------->8--- > An ECM would help too. I cannot send the actual table I am working on as it relates to grades for students. I will try to create a similar table with random entries. thanks, eric -- : Eric S Fraga (0xFFFCF67D), Emacs 25.0.94.1, Org release_8.3.5-1070-g190476