Skip to content

Optimize path separator removal in SnippetExtensions#736

Merged
SimonCropp merged 2 commits intomainfrom
Optimize-path-separator-removal-in-SnippetExtensions
Jan 14, 2026
Merged

Optimize path separator removal in SnippetExtensions#736
SimonCropp merged 2 commits intomainfrom
Optimize-path-separator-removal-in-SnippetExtensions

Conversation

@SimonCropp
Copy link
Owner

Refactors the method to use string.Create for removing '/' and '' from paths, improving performance and reducing allocations. Also adds an early return if no separators are present.

Refactors the method to use string.Create for removing '/' and '\' from paths, improving performance and reducing allocations. Also adds an early return if no separators are present.
@SimonCropp SimonCropp added this to the 28.0.1 milestone Jan 13, 2026
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