Re: [ANN] faster org-table-to-lisp

2020-05-02 Thread Nicolas Goaziou
Hello, tbanelwebmin writes: > There is a last cleanup that can be achieved > (or not, doesn't really matter): > simplifying two calls located in org-table.el: > > (org-table-to-lisp > (buffer-substring-no-properties (org-table-begin) (org-table-end))) > > to: > > (org-table-to-lisp) Indeed. D

Re: [ANN] faster org-table-to-lisp

2020-05-02 Thread tbanelwebmin
Le 01/05/2020 à 15:11, Nicolas Goaziou a écrit : > Indeed. I also realized this, and fixed it a couple of hours ago. You > will notice I shamelessly used your "\\="© trick! :) This kind of shamelessness builds great communities :) > Great. I removed the check and added an entry in ORG-NEWS. It s

Re: [ANN] faster org-table-to-lisp

2020-05-01 Thread Nicolas Goaziou
tbanelwebmin writes: > I realized that not calling `org-table-end' may cause a corner case: > > | 2 | b | > | c | d | > > #+TBLFM: @1$1=2||3 Indeed. I also realized this, and fixed it a couple of hours ago. You will notice I shamelessly used your "\\="© trick! :) > I do agree. We can expect cal

Re: [ANN] faster org-table-to-lisp

2020-05-01 Thread tbanelwebmin
Le 01/05/2020 à 12:15, Nicolas Goaziou a écrit : > Hello, > > tbanelwebmin writes: > >> Nicolas, how did you do that? Your version is 25% faster than mine, >> and the code is 33% shorter! Very elegant. > Thank you. There's nothing fancy, really. > > The main difference is that it does not call `o

Re: [ANN] faster org-table-to-lisp

2020-05-01 Thread Nicolas Goaziou
Hello, tbanelwebmin writes: > Nicolas, how did you do that? Your version is 25% faster than mine, > and the code is 33% shorter! Very elegant. Thank you. There's nothing fancy, really. The main difference is that it does not call `org-table-end'. Minor tweaks are: - use simpler regexps, - cal

Re: [ANN] faster org-table-to-lisp

2020-04-30 Thread tbanelwebmin
Nicolas, how did you do that? Your version is 25% faster than mine, and the code is 33% shorter! Very elegant. Le 01/05/2020 à 00:35, Nicolas Goaziou a écrit : > tbanelwebmin writes: > >> I found a way to ensure full backward compatibility. I keep the same >> signature. When a table is given as

Re: [ANN] faster org-table-to-lisp

2020-04-30 Thread Nicolas Goaziou
tbanelwebmin writes: > I found a way to ensure full backward compatibility. I keep the same > signature. When a table is given as a string parameter, it is inserted > into a temporary buffer, which is then parsed. Overall, the resulting > speed is quite satisfactory. A, you didn't like my EL

Re: [ANN] faster org-table-to-lisp

2020-04-30 Thread tbanelwebmin
Better, thanks Daniele Let's go for "handling very large tables" Regards Thierry Le 30/04/2020 à 22:47, Daniele Nicolodi a écrit : > Hello, > > On 30-04-2020 14:28, tbanelwebmin wrote: >> * Version 9.4 (not yet released) >> ** Miscellaneous >> *** Faster org-table-to-lisp >> >> The new implementa

Re: [ANN] faster org-table-to-lisp

2020-04-30 Thread Daniele Nicolodi
Hello, On 30-04-2020 14:28, tbanelwebmin wrote: > * Version 9.4 (not yet released) > ** Miscellaneous > *** Faster org-table-to-lisp > > The new implementation can be more than 100 times faster. This enhances > responsiveness of Babel or Gnuplot blocks handling thousands long tables. Nitpicking:

Re: [ANN] faster org-table-to-lisp

2020-04-30 Thread tbanelwebmin
Le 30/04/2020 à 10:09, Nicolas Goaziou a écrit : > Hello, > > tbanelwebmin writes: > >> Here is an alternative, faster version of org-table-to-lisp. It can be >> more than 100 times faster. > Great! Thank you! > >> #+BEGIN_SRC elisp >> (defun org-table-to-lisp-faster (&optional org-table-at-p-don

Re: [ANN] faster org-table-to-lisp

2020-04-30 Thread Nicolas Goaziou
Hello, tbanelwebmin writes: > Here is an alternative, faster version of org-table-to-lisp. It can be > more than 100 times faster. Great! Thank you! > #+BEGIN_SRC elisp > (defun org-table-to-lisp-faster (&optional org-table-at-p-done) >   "Convert the table at point to a Lisp structure. > The

[ANN] faster org-table-to-lisp

2020-04-29 Thread tbanelwebmin
Hi The List. Here is an alternative, faster version of org-table-to-lisp. It can be more than 100 times faster. #+BEGIN_SRC elisp (defun org-table-to-lisp-faster (&optional org-table-at-p-done)   "Convert the table at point to a Lisp structure. The structure will be a list.  Each item is either t