emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Extremely slow org-table operations
@ 2014-10-29  3:00 York Zhao
  2014-10-29  9:43 ` Nicolas Goaziou
  0 siblings, 1 reply; 14+ messages in thread
From: York Zhao @ 2014-10-29  3:00 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 1989 bytes --]

Hi list,

A few months ago I tried Emacs 24.4 and was disappointed because almost all of
the org-table operations became AT LEAST ten times slower. Because recently
Emacs 24.4 gets officially released, I finally switched over. However, the
problems I had several months ago were still there, i.e., in a big file,
org-table operations are at least ten times slower. I tried profiling it but
didn't help much. So I decided to report the issue here.

I've created an ECM, please find attached the zip file which includes four
files:

1. test-org: a bash simple script file having a single line:

   emacs -Q --load test.el

2. test.el, with the following contents:
   (find-file "test.org")
   (show-all)
   (goto-char (point-max))
   (forward-line -1)
   (profiler-start 'cpu)
   (org-ctrl-c-ctrl-c)
   (profiler-report)
   (profiler-stop)

3. test.org: the org-mode file to reproduce the issue.

4. profiler-report: the "Profiler Report" file
   This file was created by pressing "C-x C-w" (as described in the Elisp Info)
   from a profile report buffer. However, I have no idea how to reproduce the
   "Profiler Report Buffer" from this file. I've tried M-x profiler-report-mode
   but it didn't work. If anyone knows how, please let me know and I would
   appreciate it.

In summery, the file "test.org" has more than 5000 org-table tables, each table
has a formula. If you move the point to the tables not too far away from the
beginning of the buffer and press "C-c C-c" on the formula line, you will notice
that the speed is very fast which is great. However, if you move the point far
away enough from the beginning of the buffer (move to the end for example), you
will find that "C-c C-c" on the formula line becomes much slower.

Many other operations are also very slow. However, because I haven't been able
to create the ECMs for those operations yet, lets focus on this one first.

Please let me know what else I can do to help addressing this issue.


Thanks in advance,

York

[-- Attachment #2: Test.zip --]
[-- Type: application/zip, Size: 29532 bytes --]

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2014-11-08 20:34 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-29  3:00 Extremely slow org-table operations York Zhao
2014-10-29  9:43 ` Nicolas Goaziou
2014-10-29 23:22   ` York Zhao
2014-10-29 23:40     ` Charles Millar
2014-10-30  6:47       ` Michael Brand
2014-10-30 12:39         ` Charles Millar
2014-10-30 15:13           ` Fwd: " Charles Millar
2014-10-30 19:19           ` Charles Millar
2014-10-30 15:54         ` Nicolas Goaziou
2014-10-30 20:07         ` Charles Millar
2014-10-30 14:38       ` York Zhao
2014-10-31 19:12         ` Charles Millar
2014-11-08 15:25           ` York Zhao
2014-11-08 20:34             ` Nicolas Goaziou

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).