Skip to content

Analyzer: Recommend upgrading to CompositeFormat for enhanced performance #85525

@geeknoid

Description

@geeknoid

.NET 8 introduces the CompositeFormat abstraction which can substantially improve performance of code that does a lot of formatting (we have some services that spend their day doing this). Having a performance-centric analyzer discovering uses of String.Format/StringBuilder.AppendFormat and recommending updates to CompositeFormat would help the ecosystem evolve. A fixer here should be relatively simple.

Category : Performance
Severity : Hidden

Metadata

Metadata

Assignees

No one assigned

    Labels

    api-approvedAPI was approved in API review, it can be implementedarea-System.Runtimecode-analyzerMarks an issue that suggests a Roslyn analyzercode-fixerMarks an issue that suggests a Roslyn code fixerhelp wanted[up-for-grabs] Good issue for external contributorspartner-impactThis issue impacts a partner who needs to be kept updated

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions