`orgtbl-to-generic' speed-up
commit35e8e5c93a8b93df2bf125d72778a8ab4aabdb0c
authorNicolas Goaziou <mail@nicolasgoaziou.fr>
Thu, 29 Dec 2016 17:48:20 +0000 (29 18:48 +0100)
committerNicolas Goaziou <mail@nicolasgoaziou.fr>
Thu, 29 Dec 2016 18:46:31 +0000 (29 19:46 +0100)
tree157dcfaf1f026e305026bc7feab835cb0fcb55a6
parent6f6c2ea8d9368b63ea99e6aed5ccb0ec65157f03
`orgtbl-to-generic' speed-up

* lisp/org-element.el (org-element-class): Make it a defsubst.
* lisp/org-table.el (orgtbl-to-generic): Do not use cache when
  building Org table.  Factor out calls to Org Export functions when
  they are not necessary.
(org-table--to-generic-row): Factor out calls to Org Export functions
when they are not necessary.
* lisp/ox.el (org-export-resolve-fuzzy-link):
(org-export-table-has-header-p):
(org-export-table-row-group):
(org-export-table-cell-width):
(org-export-table-cell-alignment): Small refactoring.
(org-export-table-row-number): Add caching.

* testing/lisp/test-org-element.el (test-org-element/class): Remove
  test.
lisp/org-element.el
lisp/org-table.el
lisp/ox.el
testing/lisp/test-org-element.el