chiark / gitweb /
Implement caching of rendered math output.
authorVladimír Vondruš <mosra@centrum.cz>
Mon, 11 Jun 2018 13:32:49 +0000 (15:32 +0200)
committerVladimír Vondruš <mosra@centrum.cz>
Mon, 11 Jun 2018 13:33:03 +0000 (15:33 +0200)
commit9c59340a2aa2d65e05c0b222f0a06f5752a954ca
tree047ffe615d00345b175478a026968717928c3108
parentfdcc4cd2c631b535f08ecf2091c0bae44e657eeb
Implement caching of rendered math output.

Stores the output of divsvgm in a dict and (de)serializes that in the
filesystem to preserve it across runs. Rough speedup:

 * For the Magnum website, initial generation went down from 14 seconds
   to 9, with subsequent runs just 2.5 seconds.
 * For the Magnum docs, generation time went down from 1:33 to just 14
   seconds.
17 files changed:
doc/doxygen.rst
doc/plugins/math-and-code.rst
doxygen/dox2html5.py
doxygen/test/contents_custom/Doxyfile
doxygen/test/contents_math/Doxyfile
doxygen/test/contents_math_cached/Doxyfile [new file with mode: 0644]
doxygen/test/contents_math_cached/input.dox [new file with mode: 0644]
doxygen/test/contents_math_cached/math.html [new file with mode: 0644]
doxygen/test/test_contents.py
doxygen/test/test_doxyfile.py
pelican-plugins/latex2svgextra.py
pelican-plugins/m/.gitignore
pelican-plugins/m/math.py
pelican-plugins/m/test/math_cached/page.html [new file with mode: 0644]
pelican-plugins/m/test/math_cached/page.rst [new file with mode: 0644]
pelican-plugins/m/test/math_uncached/page.rst [new file with mode: 0644]
pelican-plugins/m/test/test_math.py