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
You're not measuring Box::new, you're measuring the compiler's ability to remove unnecessary allocations. For some reason 1.19+ isn't able to eliminate the allocations, while 1.18 is.
You're not measuring Box::new, you're measuring the compiler's ability to remove unnecessary allocations. For some reason 1.19+ isn't able to eliminate the allocations, while 1.18 is.
You could use test::black_box to prevent this optimization to make sure that that's really the issue.
It seems there is a performance regression related to
Box::new()
between 1.18 and 1.19 beta.In Release/Stable:
In Release/Beta, it's ~200× slower:
https://is.gd/AaDx3A
The text was updated successfully, but these errors were encountered: