Skip to content

Commit

Permalink
Precompile Markdown for parsing and printing latency
Browse files Browse the repository at this point in the history
Better/more complete precompile fix for JuliaLang#55706 than JuliaLang#55706.
  • Loading branch information
PallHaraldsson authored Sep 12, 2024
1 parent 945517b commit eef78dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stdlib/Markdown/src/Markdown.jl
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ catdoc(md::MD...) = MD(md...)

if Base.generating_output()
# workload to reduce latency
md"""
println(devnull, md"""
# H1
## H2
### H3
Expand All @@ -140,7 +140,7 @@ if Base.generating_output()
`code`
Horizontal Rule
---
"""
""")'
end

end

0 comments on commit eef78dc

Please sign in to comment.