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
The text was updated successfully, but these errors were encountered:
tuplecats
changed the title
Default::default() has bad optimization for String from 1.52.0
Default::default() has bad optimization for String since 1.52.0
Nov 22, 2021
Since 1.52.0 Rust copy byte from static memory for creating String by
Default::default()
. But when uses"".to_string()
it doesn't happen.Additional instruction appears when use
Default::default()
(godbolt)The text was updated successfully, but these errors were encountered: