[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] another example of org being slow, with some analysis
From: |
Nicolas Goaziou |
Subject: |
Re: [O] another example of org being slow, with some analysis |
Date: |
Fri, 19 Jun 2015 09:37:23 +0200 |
Hello,
Daniel Bausch <address@hidden> 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
- [O] another example of org being slow, with some analysis, Eric S Fraga, 2015/06/18
- Re: [O] another example of org being slow, with some analysis, Nick Dokos, 2015/06/18
- Re: [O] another example of org being slow, with some analysis, Daniel Bausch, 2015/06/19
- Re: [O] another example of org being slow, with some analysis, Daniel Bausch, 2015/06/19
- Re: [O] another example of org being slow, with some analysis,
Nicolas Goaziou <=
- Re: [O] another example of org being slow, with some analysis, Eric S Fraga, 2015/06/19
- Re: [O] another example of org being slow, with some analysis, Daniel Bausch, 2015/06/19
- Re: [O] another example of org being slow, with some analysis, Eric S Fraga, 2015/06/19
- Re: [O] another example of org being slow, with some analysis, Daniel Bausch, 2015/06/22
- Re: [O] another example of org being slow, with some analysis, Eric S Fraga, 2015/06/23
- Re: [O] another example of org being slow, with some analysis, Nick Dokos, 2015/06/19
- Re: [O] another example of org being slow, with some analysis, Eric S Fraga, 2015/06/19
- Re: [O] another example of org being slow, with some analysis, Jacob Nielsen, 2015/06/22
Re: [O] another example of org being slow, with some analysis, Ivan Andrus, 2015/06/18