New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
perf slowdown from #70831 (remove a stack frame from .await calls) #71244
Comments
It does seem a bit strange to me that there's a slowdown here - the complexity of the overall code post expansion seems like it should be just about the same as before, right? |
IIRC, a That would presumably double type-checking time in an I'm actually a bit surprised all of the unsafety (i.e. |
Context for wg-prioritization: here's the benchmark. It's sort of a stress test, but not an unrealistic one in that it only goes 7 levels deep (I'm sure we have some call trees that deep, and maybe with a 3x factor, in Fuchsia, but only a few). |
Assigning |
Post-merge perf results are 100% restricted to
await-call-tree
, and it's more clearly >1% now, post-rust-lang/rustc-perf#645 (cc @Mark-Simulacrum).Presumably we consider that test a stress test and we're fine with the 1-5% slowdown?
cc @rust-lang/wg-async-foundations
Originally posted by @eddyb in #70831 (comment)
The text was updated successfully, but these errors were encountered: