Skip to content

Commit edfe2a8

Browse files
Greatly improve rustdoc rendering speed issues
1 parent 118e052 commit edfe2a8

File tree

4 files changed

+611
-529
lines changed

4 files changed

+611
-529
lines changed

src/librustdoc/html/render.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -868,9 +868,8 @@ themePicker.onblur = handleThemeButtonsBlur;
868868
}
869869

870870
{
871-
let mut data = format!("var resourcesSuffix = \"{}\";\n",
872-
cx.shared.resource_suffix);
873-
data.push_str(static_files::STORAGE_JS);
871+
let mut data = static_files::STORAGE_JS.to_owned();
872+
data.push_str(&format!("var resourcesSuffix = \"{}\";", cx.shared.resource_suffix));
874873
write_minify(cx.dst.join(&format!("storage{}.js", cx.shared.resource_suffix)),
875874
&data,
876875
options.enable_minification)?;

0 commit comments

Comments
 (0)