Skip to content

Cache tracing spans#1132

Merged
DJMcNab merged 1 commit intolinebender:mainfrom
DJMcNab:traces-retain
Jul 9, 2025
Merged

Cache tracing spans#1132
DJMcNab merged 1 commit intolinebender:mainfrom
DJMcNab:traces-retain

Conversation

@DJMcNab
Copy link
Copy Markdown
Member

@DJMcNab DJMcNab commented Jul 9, 2025

This is implementing the idea discussed in #687 (comment)

The reason I didn't do this before was that I thought you needed to get the parents right. However, having re-read tracing's docs since then, I've discovered that this isn't necessary.

As discussed in bevyengine/bevy#9390, this can get you pretty close to removing all the overhead; it's possible that #687 could be undone.

Copy link
Copy Markdown
Contributor

@waywardmonkeys waywardmonkeys left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me, but due to it changing things to not pass the properties around as much, I think it is best if someone else also reviews this.

@DJMcNab DJMcNab requested a review from PoignardAzur July 9, 2025 13:47
Copy link
Copy Markdown
Contributor

@PoignardAzur PoignardAzur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very welcome change!

@DJMcNab DJMcNab added this pull request to the merge queue Jul 9, 2025
Merged via the queue into linebender:main with commit 269fc4b Jul 9, 2025
18 checks passed
@DJMcNab DJMcNab deleted the traces-retain branch July 9, 2025 16:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants