diff options
| author | Camelid <camelidcamel@gmail.com> | 2021-03-01 20:06:49 -0800 |
|---|---|---|
| committer | Camelid <camelidcamel@gmail.com> | 2021-03-05 20:01:52 -0800 |
| commit | 5b7409797555b8fcfb50dc92fcda9bd1298d70c4 (patch) | |
| tree | 93f4cc10b26dabd43aea3feb7d468579f2b4bbb6 /src/librustdoc/html/markdown | |
| parent | c09d9d34f02c72b93da25ba27758db7d7cddb1f4 (diff) | |
Undo addition of boxes
I don't think the boxing helped performance, in fact I think it potentially made it worse. The data was still being copied, but now it was through a pointer. Thinking about it more, I think boxing might only help when you're passing a big object around by value all the time, rather than the slowdown being that you're cloning it.
Diffstat (limited to 'src/librustdoc/html/markdown')
| -rw-r--r-- | src/librustdoc/html/markdown/tests.rs | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/librustdoc/html/markdown/tests.rs b/src/librustdoc/html/markdown/tests.rs index e016d2c3ab0..e2ce9ad23f4 100644 --- a/src/librustdoc/html/markdown/tests.rs +++ b/src/librustdoc/html/markdown/tests.rs @@ -1,7 +1,6 @@ use super::{plain_text_summary, short_markdown_summary}; use super::{ErrorCodes, IdMap, Ignore, LangString, Markdown, MarkdownHtml}; use rustc_span::edition::{Edition, DEFAULT_EDITION}; -use std::cell::RefCell; #[test] fn test_unique_id() { |
