Skip to content

perf: remove string allocation using Replace(char overload - #1897

Closed
TimothyMakkison wants to merge 1 commit into
belav:mainfrom
TimothyMakkison:string_ext_to_string
Closed

perf: remove string allocation using Replace(char overload#1897
TimothyMakkison wants to merge 1 commit into
belav:mainfrom
TimothyMakkison:string_ext_to_string

Conversation

@TimothyMakkison

Copy link
Copy Markdown
Contributor

Each call to StringExtensions.NormalisePath would allocate a new string of Path.DirectorySeparatorChar
From profiling csharpier format on the csharpier repo #1896
image

@TimothyMakkison

Copy link
Copy Markdown
Contributor Author

Closed in favour of #1898

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant