Hello, Daniel Bausch <bau...@dvs.tu-darmstadt.de> writes:
> Line 6000 is indeed quite "lame". I have similar problems like Eric. A > table recalculation at line 43868 takes about a minute at my quite fast > machine. I also tracked that down to org-current-line. One interesting > detail is that this depends on the buffer encoding. With ASCII the > recalculation takes less than a second, with utf-8 about a minute. > > I think it actually is not an org-mode problem but depends on how > (count-lines 1 (point)) works, as it is using regex searches for the > line endings. I can imagine that the regex parser for utf-8 can be > inefficient. Actually `org-count-lines' and `org-goto-line' are inefficient functions. Unfortunately, Org Table overuses the latter. Functions calling it should be refactored to use, e.g., `goto-char' instead. However, this might require some deep changes in the library. Regards, -- Nicolas Goaziou