Skip to content

Performance fixes#5245

Merged
cscheid merged 88 commits intomainfrom
feature/fast-profiler
May 5, 2023
Merged

Performance fixes#5245
cscheid merged 88 commits intomainfrom
feature/fast-profiler

Conversation

@cscheid
Copy link
Collaborator

@cscheid cscheid commented Apr 19, 2023

This PR:

  • introduces "flags" to our Lua filter chain, which selectively enable/disable the running of filters
  • other speedups:
    • moves shortcode processing into an efficient lpeg-based parser ahead of markdown parsing. This incidentally solves the problem of shortcode parameters needing markdown unescaping.
    • introduces caching of a few repeated slow function calls in TypeScript.

Overall, we get a total ~20% speedup for rendering quarto-web.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

early-in-release An issue that should be worked on early in the release (likely due to risk) enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants