Skip to content

Fix perf regression caused by tracing #143520

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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

Stypox
Copy link
Contributor

@Stypox Stypox commented Jul 6, 2025

See #143334, this is another alternative that may be worth benchmarking as suggested in #143334 (comment).

r? @RalfJung

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Jul 6, 2025
@rustbot
Copy link
Collaborator

rustbot commented Jul 6, 2025

Some changes occurred to the CTFE machinery

cc @RalfJung, @oli-obk, @lcnr

Some changes occurred to the CTFE / Miri interpreter

cc @rust-lang/miri

@Kobzol
Copy link
Member

Kobzol commented Jul 6, 2025

@bors2 try @rust-timer queue

@rust-timer
Copy link
Collaborator

Awaiting bors try build completion.

@rustbot label: +S-waiting-on-perf

@rust-bors
Copy link

rust-bors bot commented Jul 6, 2025

⌛ Trying commit 57aa88e with merge 3ab9e25

To cancel the try build, run the command @bors2 try cancel.

rust-bors bot added a commit that referenced this pull request Jul 6, 2025
Fix perf regression caused by tracing

See #143334, this is another alternative that may be worth benchmarking as suggested in #143334 (comment).

r? `@RalfJung`

<!-- homu-ignore:start -->
<!--
If this PR is related to an unstable feature or an otherwise tracked effort,
please link to the relevant tracking issue here. If you don't know of a related
tracking issue or there are none, feel free to ignore this.

This PR will get automatically assigned to a reviewer. In case you would like
a specific user to review your work, you can assign it to them by using

    r? <reviewer name>
-->
<!-- homu-ignore:end -->
@rustbot rustbot added the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Jul 6, 2025
@RalfJung
Copy link
Member

RalfJung commented Jul 6, 2025

No, this is not the closure I meant. I don't think this one will help.

What I meant is an API of the form

fn with_trace_span<R>(_span: tracing::Span, f: impl FnOnce() -> R) -> R { f() }

I.e., the span ends when the closure returns.

@rust-bors
Copy link

rust-bors bot commented Jul 6, 2025

☀️ Try build successful (CI)
Build commit: 3ab9e25 (3ab9e2528f3d5f3f77694dc747bed001f44bf378, parent: febb10d0a2d29278135676783f6a22eb83295981)

@rust-timer
Copy link
Collaborator

Queued 3ab9e25 with parent febb10d, future comparison URL.
There are currently 3 preceding artifacts in the queue.
It will probably take at least ~4.1 hours until the benchmark run finishes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-perf Status: Waiting on a perf run to be completed. S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants