You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Open PR from branchefficiency/pass-cached-params-to-invoke: perf: avoid redundant GetParameters() allocations in test-invocation hot path — removes O(N) ParameterInfo[] allocations per data-driven test at the invocation call site; complements perf: reduce allocations in data-driven test execution hot path #9617 — Review | Issue
Check comment on [RFC] Agent/LLM-efficient test output for Microsoft.Testing.Platform #8824: Efficiency Improver added energy impact prioritisation for LLM-output RFC proposals — ordered by token reduction, stack-frame filtering highlighted as highest win, suggestion to track output byte count as CI health metric - View
🔧 Task 3: Submitted efficiency improvement efficiency/pass-cached-params-to-invoke — threads TestMethodInfo.ParameterTypes cache through GetInvokeResultAsync, eliminating O(N) ParameterInfo[] allocs per data-driven run at the invocation call site; also eliminates double-allocation for generic test methods via ConstructGenericMethod; issue filed as #aw_pr_jul3
🌱 GSF principle: Hardware Efficiency — reduced GC frequency lowers CPU power draw proportional to data-row count
🤖 Automated content by GitHub Copilot. Posted via a maintainer's GitHub token, so it appears under their account — the account owner did not write or approve this content personally. Generated by the Efficiency Improver workflow. · 400.5 AIC · ⌖ 11.3 AIC · ⊞ 13.6K · [◷]( · ◷)
Add this agentic workflows to your repo
To install this agentic workflow, run
gh aw add githubnext/agentics/workflows/efficiency-improver.md@main
Activity for July 2026
Suggested Actions for Maintainer
efficiency/pass-cached-params-to-invoke: perf: avoid redundantGetParameters()allocations in test-invocation hot path — removes O(N)ParameterInfo[]allocations per data-driven test at the invocation call site; complements perf: reduce allocations in data-driven test execution hot path #9617 — Review | IssueITestFilterClassInit waste quantification,TestFilterContextdesign note, measurement suggestion, GSF Demand Shaping reference - ViewEnergy Efficiency Backlog
Properties.OfType()inyielditerator method — needs non-iterator helperTerminalTestReporter.cs—TotalTestscalls_assemblies.Values.Sum()on every accessPlainProcess.cs: cacheJsonSerializerOptions { WriteIndented = true }instance (CA1869 suppressed)Discovered Commands
./build.sh./build.sh -test./build.sh -pack./build.sh -pack -test -integrationTestNotes:
.dotnet/dotnet(Arcade-provisioned; run./build.shfirst to install)--no-restoreflag is broken; always run with full restoreRun History
2026-07-08 UTC - Run
GetParameters()caching proposal; PR perf: reduce allocations in data-driven test execution hot path #9617 (open) combines all data-row allocation fixesefficiency/pass-cached-params-to-invoke— threadsTestMethodInfo.ParameterTypescache throughGetInvokeResultAsync, eliminating O(N)ParameterInfo[]allocs per data-driven run at the invocation call site; also eliminates double-allocation for generic test methods viaConstructGenericMethod; issue filed as #aw_pr_jul32026-07-04 21:59 UTC - Run
efficiency/cache-getparameters-across-data-rows): cacheGetParameters()andReflectionTestMethodInfoacross data rows — 3 changes eliminate O(N) → O(1)ParameterInfo[]allocations per data-driven test; build ✅, unit tests ✅TestMethodInfo.ResolveArguments()bypassedParameterTypescache added in [efficiency-improver] perf: cache MethodInfo.GetParameters() to avoid per-row array allocations in data-driven tests #9514 (callingMethodInfo.GetParameters()directly)2026-07-03 UTC - Run
MethodInfo.GetParameters()inTestMethodInfo.ParameterTypes+ hoist inAssemblyEnumerator.TryUnfoldITestDataSourceTelemetryCollector,TestMethodRunner,TestDataSourceUtilities: all already well-optimized; no high-priority items foundAdd this agentic workflows to your repo
To install this agentic workflow, run