Skip to content

Commit

Permalink
Add precompile signatures to Markdown to reduce latency. (JuliaLang#5…
Browse files Browse the repository at this point in the history
…5715)

Fixes JuliaLang#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]>
  • Loading branch information
PallHaraldsson and KristofferC authored Sep 9, 2024
1 parent 169e9e8 commit 1463c99
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 @@ -122,4 +122,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 1463c99

Please sign in to comment.