Re: [O] spee-up table refresh

2017-01-09 Thread Thierry Banel
Le 09/01/2017 00:24, Nicolas Goaziou a écrit : > Note that recalculating a table is inherently quadratic. Well, on the test-case your change made recalculation linear (which is good): | rows | seconds | |---+-| | 1000 | 1.5 | | 1 | 13 | | 2 | 25 | | 3 |

Re: [O] spee-up table refresh

2017-01-08 Thread Nicolas Goaziou
Hello, > I don't understand those 3 lines The prevent matching a table below #+begin_example | I'm not a table | #+end_example > without them (the 688 tests work as expected). Those lines indirectly > call (org-element--cache-put) a quadratic number of times. For a 1000 > rows table thi

[O] spee-up table refresh

2017-01-08 Thread Thierry Banel
Re-computing a large table is slow. Hereafter is a test case for a 1000 row table. My computer refreshes it in 44 seconds. Here is a fast-and-dirty-not-to-be-commited patch which speed-up the refresh to less than 1 second. I just removed the last 3 lines of (org-at-table-p). I don't understand th