Skip to content

[release/10.0] Avoid custom attribute routine in NetEventSource#120431

Closed
github-actions[bot] wants to merge 9 commits intorelease/10.0from
backport/pr-120422-to-release/10.0
Closed

[release/10.0] Avoid custom attribute routine in NetEventSource#120431
github-actions[bot] wants to merge 9 commits intorelease/10.0from
backport/pr-120422-to-release/10.0

Conversation

@github-actions
Copy link
Contributor

@github-actions github-actions bot commented Oct 6, 2025

Backport of #120422 to release/10.0

/cc @ManickaP @EgorBo

Customer Impact

  • Customer reported
  • Found internally

.NET 10.0 regressed startup time for trivial workloads as was reported by the AWS team in #120288. We suspect it's some new generic instantiations we introduced in .NET 10.0 around number parsing, since that is not easy to fix/backport, we just applied a few general improvements to regain the losses. This PR removes redundant GetCustomAttribute calls by setting EventSource name in tha base ctor instead of relying on the reflection to obtain it from the attribute. We plan to simplify/automate this with a Source Generator (in fact, it's already done like that in the corelib), but for now it's changed by hands. This PR improves this sub-graph.

Regression

  • Yes
  • No

Testing

Validated that events are collected normally

Risk

Low

@jkotas jkotas requested a review from noahfalk October 6, 2025 14:13
@steveisok steveisok added the Servicing-consider Issue for next servicing release review label Oct 6, 2025
@dotnet-policy-service
Copy link
Contributor

Tagging subscribers to this area: @dotnet/ncl
See info in area-owners.md if you want to be subscribed.

@JulieLeeMSFT JulieLeeMSFT added the NO-MERGE The PR is not ready for merge yet (see discussion for detailed reasons) label Oct 13, 2025
…ns.Concurrent.ConcurrentCollectionsEventSource to use string based constructors
@hoyosjs
Copy link
Member

hoyosjs commented Oct 15, 2025

@EgorBot scenario-awslambda -arm -intel

@karelz
Copy link
Member

karelz commented Oct 29, 2025

@JulieLeeMSFT @EgorBo any plans for this PR? If we are not decided to take it, would it make sense to switch it to Draft, or Close it for now?

@EgorBo EgorBo closed this Oct 29, 2025
@JulieLeeMSFT JulieLeeMSFT reopened this Oct 29, 2025
@JulieLeeMSFT JulieLeeMSFT marked this pull request as draft October 29, 2025 16:33
@JulieLeeMSFT
Copy link
Member

converted to draft.

@PranavSenthilnathan
Copy link
Member

Since this PR is targeting release/10.0, this is a reminder that code complete is Monday November 17. If you want the changes in the PR in the release, please merge it on time.

@JulieLeeMSFT
Copy link
Member

Not servicing for 10. Closing.

@akoeplinger akoeplinger deleted the backport/pr-120422-to-release/10.0 branch November 21, 2025 12:14
@github-actions github-actions bot locked and limited conversation to collaborators Dec 22, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-System.Net NO-MERGE The PR is not ready for merge yet (see discussion for detailed reasons) Servicing-consider Issue for next servicing release review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants