Mercurial > octave
view .gitattributes @ 30299:f306fe9bfa0d
Limit the size of the cache of latex parsed strings (bug #59546).
* graphics.in.h (gh_manager::latex_data): New typedef moved from latex_renderer.
(m_latex_cache, m_latex_keys): New data members. A map of cached latex_data
and a list of keys. The latter allows for deleting the oldest entries when
the cache becomes too large.
(gh_manager::get_latex_data, gh_manager::set_latex_data): Cache accessor
functions.
* latex-text-renderer.cc: Remove global latex_cache variable.
(latex_renderer::text_to_strlist,latex_renderer::render): Use the
gh_manager to handle the cache.
author | Pantxo Diribarne <pantxo.diribarne@gmail.com> |
---|---|
date | Thu, 27 May 2021 22:49:26 +0200 |
parents | c6f9ff84dc84 |
children |