Closed
Description
Rust compiler at present is unable to generate as efficient code for write!(f, "string")
as it can do for f.write_str("string")
. I tried to look through the code, but it seems fairly complex in how you generate the output token stream. Would it be possible to handle the case when the string is known ahead of time and does not contain either {
or }
characters, and use the write_str
instead?
Metadata
Metadata
Assignees
Labels
No labels