Repository navigation
Closed
Labels
area/performanceRuntime / build performance / efficiency.Runtime / build performance / efficiency.type/automationCreated or maintained by an agentic workflow.Created or maintained by an agentic workflow.
Description
Activity for July–August 2026
Suggested Actions for Maintainer
- Review PR #aw_pr_paramless: Cache
TestMethodIdentifierPropertyfor parameterless tests inParsedManagedNameto eliminate per-execution allocation in retry/re-run scenarios - Review
Performance Opportunities Backlog
DotnetTestHttpClient:new byte[1]trailing-byte check →ReadByte(). Very low priority.SilenceDrivenHeartbeatRenderer.BuildSlowTestDescription:new StringBuilder()per slow-test event. Very low priority.AnsiTerminal.StopUpdate():_stringBuilder.ToString()on every flush. Blocked by IConsole + netstandard2.0 compat.OpenTelemetryResultHandler.GetFullyQualifiedName(): string allocation per test result — only matters with OTel enabled; low priority.
The hot paths are now well-optimized; backlog items are very low priority.
Discovered Commands
./build.sh # restore + build (Debug)
./build.sh -test # build + unit tests
./build.sh -pack # produce NuGet packages
./build.sh -pack -test -integrationTest # full suite (slow)
# SDK: 11.0.100-preview.7.26376.106 (bootstrapped into .dotnet/ by build script)Run History
2026-08-01 - Run
- 🔍 Surveyed codebase for new hot-path allocation opportunities (all remaining backlog items confirmed very low priority)
- 🔧 Created PR #aw_pr_paramless: cache
TestMethodIdentifierPropertyinParsedManagedNamefor parameterless tests — eliminates 1 allocation per retry/re-run per parameterless test method
2026-07-31 - Run
- 🔧 Created PR Cache the parsed managed name per TestMethod to avoid redundant parsing #10366: Cache parsed managed name per TestMethod (ConditionalWeakTable) to avoid redundant parsing — merged
- 🔍 Confirmed backlog: DotnetTestHttpClient
new byte[1], SilenceDrivenHeartbeatRenderer StringBuilder — both very low priority
2026-07-30 - Run
- 🔍 Identified allocation opportunities in MSTestTestNodeConverter (ManagedName parsing per execution)
- 🔍 Confirmed TestNodeResultsState, BaseSerializer, AttributeQueryHelper already well-optimized
Earlier July 2026 Runs
- 🔧 PR Avoid per-test string allocations in TestCaseExtensions #10032 merged: avoid per-test string allocations in TestCaseExtensions
- 🔧 PR perf: cache FullyQualifiedName (FullClassName.Name) in TestMethod #10230 merged: cache FullyQualifiedName in TestMethod
- 🔧 PR perf: cache ManagedTypeName on TestMethod #10243 merged: cache ManagedTypeName on TestMethod
- 🔧 PR perf: use GetUpperCaseName in InternalSyncLog to avoid Enum.ToString() allocation #10265 merged: avoid Enum.ToString() in InternalSyncLog
- 🔧 PR [perf-improver] Cache analyzer SupportedDiagnostics #10074 merged: cache analyzer SupportedDiagnostics
- 🔧 PR [perf-improver] perf: eliminate per-test closure allocations in IPC deserializers #10201 merged: eliminate per-test closure allocations in IPC deserializers
- 🔧 PR [perf-improver] Replace Array.IndexOf state checks with direct type patterns #10089 merged: replace Array.IndexOf state checks with direct type patterns
Warning
Firewall blocked 1 domain
The following domain was blocked by the firewall during workflow execution:
southcentralus0.in.applicationinsights.azure.com
To allow these domains, add them to the
network.allowedlist in your workflow frontmatter:
network:
allowed:
- defaults
- "southcentralus0.in.applicationinsights.azure.com"See Network Configuration for more information.
🤖 Automated content by GitHub Copilot. Generated by the Perf Improver workflow. · sonnet46 784.4 AIC · ⌖ 15.5 AIC · ⊞ 13.1K · [◷]( · ◷)
Comment /perf-assist to run again
Add this agentic workflow to your repo
To install this agentic workflow, run
gh aw add githubnext/agentics/workflows/perf-improver.md@main
Metadata
Metadata
Assignees
Labels
area/performanceRuntime / build performance / efficiency.Runtime / build performance / efficiency.type/automationCreated or maintained by an agentic workflow.Created or maintained by an agentic workflow.
Activity
Evangelink commentedon Aug 2, 2026
The remaining perf-improver backlog items are handled in #10384:
DotnetTestHttpClientnew byte[1]trailing-byte probe -> reuses one instance-wide buffer (requests are serialized by_requestLock).SilenceDrivenHeartbeatRenderer.BuildSlowTestDescription-> reuses a singleStringBuilder, same single-rendering-thread ownership as the backoff dictionary next to it.AnsiTerminal.StopUpdate()-> unblocked.IConsolegained aWrite(StringBuilder)overload thatSystemConsoleforwards toTextWriter.Write(StringBuilder)on .NET, so the multi-KB batched progress block is no longer copied into a fresh string on every refresh tick. netstandard2.0 / .NET Framework keep theToString()copy behind an#if, so nothing regresses there.OpenTelemetryResultHandler.GetFullyQualifiedName()-> intentionally left alone. It is one logical string build per test result on the OTel-only path;string.Concatwith 5 operands,string.Joinand aStringBuilderare all neutral-or-worse than what the compiler already emits for the interpolation. Dropping it from the backlog rather than churning the code.That leaves the backlog empty apart from the OTel entry, which is closed out as won't-fix above.
Evangelink commentedon Aug 2, 2026
Update after two review rounds on #10384 - one backlog item was walked back:
DotnetTestHttpClientnew byte[1]-> won't fix. Hoisting it to an instance field was reverted. It saved one ~24-byte allocation per RPC on a path that already allocates a linked CTS, streams,ByteArrayContentand anHttpRequestMessage, and it coupled correctness to requests staying serialized by_requestLockforever. Not a good trade.SilenceDrivenHeartbeatRenderer.BuildSlowTestDescription-> done, with the builder created lazily so a healthy run that never surfaces a slow test still allocates nothing.AnsiTerminal.StopUpdate()-> done / unblocked, as described above.OpenTelemetryResultHandler.GetFullyQualifiedName()-> won't fix, as described above.Net result: the two items with a real measurable win are fixed, the two negligible ones are closed out as won't-fix, and the backlog is empty.
Evangelink commentedon Aug 3, 2026
Superseded by #10381 (the August tracker) and now fully resolved, so closing.
Reviewing what this issue still had open:
DotnetTestHttpClientnew byte[1],SilenceDrivenHeartbeatRenderer.BuildSlowTestDescription,AnsiTerminal.StopUpdate(),OpenTelemetryResultHandler.GetFullyQualifiedName()) - handled in Clear the perf-improver backlog: reporting and terminal allocations #10384, merged. Two fixed, two closed out as won't-fix, as described in the comments above and on [perf-improver] Monthly Activity 2026-08 #10381.MSTestTestNodeConvertercachesParsedManagedNameperTestMethodin aConditionalWeakTableand caches the derivedTestMethodIdentifierPropertyalongside it only for parameterless methods, precisely becauseParameterTypeFullNamesis publicly exposed and sharing a non-empty array between nodes would be unsafe. Nothing missing there.The August tracker #10381 has an empty backlog, so nothing carries forward from July.
Unrelated cleanup while here: this issue carried three malformed labels (
[area/performance,type/automation],performance) produced by a labels string being applied instead of a list. Removed. The repo has 13 such junk labels in total; see the note on #10382.