Skip to content

Commit 1463c99

Browse files
Add precompile signatures to Markdown to reduce latency. (#55715)
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 <kcarlsson89@gmail.com>
1 parent 169e9e8 commit 1463c99

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

stdlib/Markdown/src/Markdown.jl

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,4 +122,25 @@ import Base.Docs: catdoc
122122

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

125+
if Base.generating_output()
126+
# workload to reduce latency
127+
md"""
128+
# H1
129+
## H2
130+
### H3
131+
**bold text**
132+
*italicized text*
133+
> blockquote
134+
1. First item
135+
2. Second item
136+
3. Third item
137+
- First item
138+
- Second item
139+
- Third item
140+
`code`
141+
Horizontal Rule
142+
---
143+
"""
144+
end
145+
125146
end

0 commit comments

Comments
 (0)