emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: Emacs Org mode mailing list <emacs-orgmode@gnu.org>
Subject: Re: working with tables can be quite painful...
Date: Sat, 17 Sep 2016 10:48:29 +0200	[thread overview]
Message-ID: <87fuoyrjxe.fsf@saiph.selenimh> (raw)
In-Reply-To: <87r38jew14.fsf@ucl.ac.uk> (Eric S. Fraga's message of "Fri, 16 Sep 2016 15:53:11 +0100")

Hello,

Eric S Fraga <e.fraga@ucl.ac.uk> writes:

> I am working with a table.  It has approximately 130 rows and 20 columns
> so it's not huge but also not small.  Three columns are text but the
> rest are all numbers with some degree of sparsity.  Instrumenting org
> while working on this table, manipulating the entries in just one row, I
> get the following:
>
> | Function                 | calls | elapsed time | average time |
> |--------------------------+-------+--------------+--------------|
> | org-cycle                |    20 | 41.550963140 | 2.0775481570 |
> | org-table-next-field     |    20 | 41.544266727 | 2.0772133363 |
> | org-table-align          |     5 | 41.470595702 | 8.2941191404 |
> | org-mode-flyspell-verify |    52 | 1.0647362189 | 0.0204756965 |
> | org-do-latex-and-related |    21 | 0.6656267140 | 0.0316965101 |
> | org-element-at-point     |   125 | 0.6356939890 | 0.0050855519 |
> | org-element--parse-to    |   125 | 0.6086256940 | 0.0048690055 |
> | org-element--cache-put   |  1399 | 0.4963533770 | 0.0003547915 |
>
> From this, it would seem that the table align function is killing the
> performance.  8 seconds per call?  On an 8 core Intel(R) Core(TM)
> i7-2760QM CPU @ 2.40GHz... so not my wee Pandora where I expect
> slowness!
>
> This is with a not quite up to date org.  I'm avoiding upgrading as I am
> preparing material for teaching which starts soon and I don't want to
> run into issues due to changes in org... so I apologise if things have
> changed recently. This performance issue has existed for quite some time
> now, however.
>
> Any suggestions on speeding things up?

Could you send a profiler report so that I can get a better glimpse on
what part of `org-table-align' is lagging?

An ECM would help too.

Regards,

-- 
Nicolas Goaziou

  reply	other threads:[~2016-09-17  8:48 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-16 14:53 working with tables can be quite painful Eric S Fraga
2016-09-17  8:48 ` Nicolas Goaziou [this message]
2016-09-17 15:22   ` Adam Porter
2016-09-17 15:37 ` Michael Brand
     [not found] ` <9ae6591e2754413885a96e19c2455472@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
2016-09-19  8:33   ` Eric S Fraga
2016-09-19 12:58     ` Michael Welle
     [not found]     ` <df2f3c4ad6a34890ad82cd1d0d557003@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
2016-09-19 14:23       ` Eric S Fraga
2016-09-19 17:54         ` Michael Welle
2016-09-22 19:52     ` Nicolas Goaziou
     [not found] ` <61c781eee3b64613a40a39b95bc54e63@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
2016-09-19  8:36   ` Eric S Fraga
2016-09-20  8:54 ` Jacob Nielsen
     [not found] ` <b05decb709ba4f64932ba34835b08056@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
2016-09-20  9:03   ` Eric S Fraga

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87fuoyrjxe.fsf@saiph.selenimh \
    --to=mail@nicolasgoaziou.fr \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).