Use ordinal string comparison in hot paths

This commit is contained in:
smoogipoo
2018-08-21 11:10:54 +09:00
parent a8b20b8b98
commit 541c4daa81
2 changed files with 3 additions and 3 deletions

View File

@ -60,7 +60,7 @@ namespace osu.Game.Beatmaps.Formats
private void handleEvents(string line)
{
var depth = 0;
while (line.StartsWith(" ") || line.StartsWith("_"))
while (line.StartsWith(" ", StringComparison.Ordinal) || line.StartsWith("_", StringComparison.Ordinal))
{
++depth;
line = line.Substring(1);