ox: Speed-up some tools on tables
commit2f5cd6735737a5d2d749216cb1847d6f0888754f
authorNicolas Goaziou <mail@nicolasgoaziou.fr>
Sun, 1 Jan 2017 22:58:29 +0000 (1 23:58 +0100)
committerNicolas Goaziou <mail@nicolasgoaziou.fr>
Sun, 1 Jan 2017 22:58:29 +0000 (1 23:58 +0100)
tree6301ced39c37a376a44ac327d7a9506f039c2de7
parenta277fd3efa1e93955b6ccf98b9e4cdb6c9503882
ox: Speed-up some tools on tables

* lisp/ox.el (org-export-table-has-special-column-p): Tiny
  refactoring.
(org-export-table-has-header-p): Fix cache use, i.e., no longer
re-compute return value when the table is already known to have no
header.
(org-export-table-row-group):
(org-export-table-row-number): Populate cache with all the rows
whenever a row is queried.  This fixes previous quadratic behaviour.

Reported-by: Thierry Banel <tbanelwebmin@free.fr>
<http://permalink.gmane.org/gmane.emacs.orgmode/111131>
lisp/ox.el
testing/lisp/test-ox.el