Closed
Description
A further performance improvement here would be to make sure that Buffer
impls core::fmt::Write
, in which case we could use render_into(buf)
rather than render()
, avoiding the allocation of a temporary String
here. Buffer
internally seems to just hold a String
and it has write_str()
and write_fmt()
methods already, so perhaps it would make sense to implement that trait? I'm not sure how big/relevant the performance improvement would be.
Originally posted by @djc in #92526 (comment)
Metadata
Metadata
Assignees
Labels
Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Issue: Problems and improvements with respect to memory usage during compilation.Issue: Problems and improvements with respect to compile times.Relevant to the rustdoc team, which will review and decide on the PR/issue.