You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Apparently when using write!("anything without arguments"), the compiler generates considerable additional code, resulting in bigger binaries and likely slower performance. I tried it with https://rust.godbolt.org/z/Y8djWsq1P
I would like to replace write!(f, ...) with f.write_str(...) in the generated code.
P.S. This issue is also tracked in rust-lang/rust#99012 - but it appears to be highly complex and nowhere near being solved in a near future, thus warranting a workaround at least in the popular crates.
The text was updated successfully, but these errors were encountered:
Apparently when using
write!("anything without arguments")
, the compiler generates considerable additional code, resulting in bigger binaries and likely slower performance. I tried it with https://rust.godbolt.org/z/Y8djWsq1PI would like to replace
write!(f, ...)
withf.write_str(...)
in the generated code.P.S. This issue is also tracked in rust-lang/rust#99012 - but it appears to be highly complex and nowhere near being solved in a near future, thus warranting a workaround at least in the popular crates.
The text was updated successfully, but these errors were encountered: