Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update string comparisons #50

Closed
1 task
kamronbatman opened this issue Sep 8, 2019 · 3 comments
Closed
1 task

Update string comparisons #50

kamronbatman opened this issue Sep 8, 2019 · 3 comments
Labels
enhancement New feature or request

Comments

@kamronbatman
Copy link
Contributor

  • Update string comparison (EndsWith etc) with Span handling.
@kamronbatman kamronbatman added the enhancement New feature or request label Sep 8, 2019
@3HMonkey
Copy link
Contributor

3HMonkey commented Jan 6, 2020

BTW, here is s short summary about this: https://www.stevejgordon.co.uk/an-introduction-to-optimising-code-using-span-t
Also seems like MemoryExtensions could be used (
MemoryExtensions.EndsWith(line, ")", StringComparison.Ordinal)
)
https://docs.microsoft.com/en-us/dotnet/api/system.memoryextensions.endswith?view=netcore-3.1

@kamronbatman
Copy link
Contributor Author

I recommend making a StringUtils class in the core.

@kamronbatman
Copy link
Contributor Author

This is related to #351

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants