Skip to content

Commit

Permalink
Add precompile signatures to Markdown to reduce latency. (#55715)
Browse files Browse the repository at this point in the history
Fixes #55706 that is seemingly a 4472x regression, not just 16x (was my
first guess, based on CondaPkg, also fixes or greatly mitigates
JuliaPy/CondaPkg.jl#145), and large part of 3x
regression for PythonCall.

---------

Co-authored-by: Kristoffer Carlsson <[email protected]>
(cherry picked from commit 1463c99)
  • Loading branch information
PallHaraldsson authored and KristofferC committed Sep 11, 2024
1 parent 2878479 commit 26440bd
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions stdlib/Markdown/src/Markdown.jl
Original file line number Diff line number Diff line change
Expand Up @@ -98,4 +98,25 @@ import Base.Docs: catdoc

catdoc(md::MD...) = MD(md...)

if Base.generating_output()
# workload to reduce latency
md"""
# H1
## H2
### H3
**bold text**
*italicized text*
> blockquote
1. First item
2. Second item
3. Third item
- First item
- Second item
- Third item
`code`
Horizontal Rule
---
"""
end

end

0 comments on commit 26440bd

Please sign in to comment.