Skip to content
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

Reduce alloc in GetStackTraceInformation #4367

Merged
merged 5 commits into from
Dec 17, 2024

Conversation

SimonCropp
Copy link
Contributor

  • cache s_utaEndOfInnerExceptionTrace statically to avoid the string concat on every iteration of the loop
  • remove CurrentCulture usage. they are all strings
  • avoid the concat with the popped value. yes this is redundant on newer runtimes, but not for older

Copy link
Member

@Youssef1313 Youssef1313 left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@Evangelink Evangelink left a comment

Choose a reason for hiding this comment

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

It feels strange to always have the space prefix but you preserved intent so LGTM

@Evangelink Evangelink merged commit 09af447 into microsoft:main Dec 17, 2024
10 checks passed
Evangelink pushed a commit to Evangelink/testfx that referenced this pull request Dec 17, 2024
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