1 comments

  • yagarea2 days ago
    I did some benchmarks and found out that the real slowdown is not the LaTeX rendering itself, but calling KaTeX from Ruby. In the previous version, every LaTeX expression meant a separate KaTeX call. Now, I find all expressions on a page and render them in a single bulk KaTeX call. As a result, my personal blog—which contains ~5k LaTeX expressions with nothing cached now builds in 7 seconds instead of 92 seconds.<p>I also added more configuration options and included some bug fixes. Here is full changelog: <a href="https:&#x2F;&#x2F;github.com&#x2F;yagarea&#x2F;jektex&#x2F;blob&#x2F;master&#x2F;changelog.md" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;yagarea&#x2F;jektex&#x2F;blob&#x2F;master&#x2F;changelog.md</a><p>This rewrite is already published on RubyGems: <a href="https:&#x2F;&#x2F;rubygems.org&#x2F;gems&#x2F;jektex" rel="nofollow">https:&#x2F;&#x2F;rubygems.org&#x2F;gems&#x2F;jektex</a>