-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Use less catch_unwind
in lang_start_internal
#109051
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
Conversation
(rustbot has picked a reviewer for you, use r? to override) |
I don't think rustc perf will have any useful results, the compiler is a very big program so this small one time startup change will probably not make it over the noise threshold. You're probably better off benchmarking a hello world or something like that locally. |
|
Well, I can start one anyways, we have enough |
This comment has been minimized.
This comment has been minimized.
⌛ Trying commit 19910f1a550a300ef0153176fdb69baacff3d0cb with merge 71e1728448334ed5b308e433eb07ff411a98b7e6... |
☀️ Try build successful - checks-actions |
This comment has been minimized.
This comment has been minimized.
Finished benchmarking commit (71e1728448334ed5b308e433eb07ff411a98b7e6): comparison URL. Overall result: no relevant changes - no action neededBenchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. While you can manually mark this PR as fit for rollup, we strongly recommend not doing so since this PR may lead to changes in compiler perf. @bors rollup=never Instruction countThis benchmark run did not return any relevant results for this metric. Max RSS (memory usage)ResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesThis benchmark run did not return any relevant results for this metric. |
catch_unwind
in lang_start_internal
catch_unwind
in lang_start_internal
19910f1
to
6f35373
Compare
Hey! It looks like you've submitted a new PR for the library teams! If this PR contains changes to any Examples of
|
@rustbot author |
ping from triage - can you post your status on this PR? There hasn't been an update in a few months. Thanks! FYI: when a PR is ready for review, send a message containing |
This doesn't really have an impact except maybe making the code a bit more readable, so I'm not really motivated to find the issue that caused CI to fail here. I'll just close this. |
Moving abort guards to destructors can yield better codegen thancatch_unwind
in user code, so perhaps it also works forlang_start
?Could someone trigger rust-timer for me, please? I don't have permissions.Using an aborting drop guard to stop unwinding is a bit cleaner and avoids the footguns associated with
catch_unwind
.The impact on binary size is unfortunately negligible (-4kB on my machine for "hello world").