perf: dedupe GetSimpleTypeName into shared TypeNameFormatter by thomhurst · Pull Request #6097 · thomhurst/TUnit (original) (raw)
Extract the duplicated runtime GetSimpleTypeName logic from TestDataFormatter and DisplayNameBuilder into a single internal TypeNameFormatter helper in TUnit.Core.Helpers.
The shared implementation builds the entire recursive name with one pooled StringBuilder, allocating only the final string instead of a new string[] + string.Join per generic level. Output is byte-identical to both previous call sites.
Closes #6039
[](/apps/claude)
[](/apps/claude)
thomhurst deleted the perf/issue-6039-dedupe-simpletypename branch
This was referenced
May 29, 2026
This was referenced
Jun 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
[ Show hidden characters]({{ revealButtonHref }})