low hanging fruit speed up in inputlog loading using str[0] == c instead of str.StartsWith(c)
This commit is contained in:
parent
681ef72cd5
commit
333ce98a71
|
@ -53,7 +53,7 @@ namespace BizHawk.Client.Common
|
|||
string line;
|
||||
while ((line = reader.ReadLine()) != null)
|
||||
{
|
||||
if (line.StartsWith("|"))
|
||||
if (line[0] == '|')
|
||||
{
|
||||
Log.Add(line);
|
||||
}
|
||||
|
@ -117,7 +117,7 @@ namespace BizHawk.Client.Common
|
|||
string line;
|
||||
while ((line = reader.ReadLine()) != null)
|
||||
{
|
||||
if (line.StartsWith("|"))
|
||||
if (line[0] == '|')
|
||||
{
|
||||
newLog.Add(line);
|
||||
}
|
||||
|
|
|
@ -62,7 +62,7 @@ namespace BizHawk.Client.Common
|
|||
{
|
||||
Comments.Add(line.Substring(8, line.Length - 8));
|
||||
}
|
||||
else if (line.StartsWith("|"))
|
||||
else if (line[0] == '|')
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
|
|
@ -124,7 +124,7 @@ namespace BizHawk.Client.Common
|
|||
break;
|
||||
}
|
||||
|
||||
if (line.StartsWith("|"))
|
||||
if (line[0] == '|')
|
||||
{
|
||||
VerificationLog.Add(line);
|
||||
}
|
||||
|
|
|
@ -226,7 +226,7 @@ namespace BizHawk.Client.Common
|
|||
string line;
|
||||
while ((line = reader.ReadLine()) != null)
|
||||
{
|
||||
if (line.StartsWith("|"))
|
||||
if (line[0] == '|')
|
||||
{
|
||||
newLog.Add(line);
|
||||
if (!timelineBranchFrame.HasValue && counter < Log.Count && line != Log[counter])
|
||||
|
|
Loading…
Reference in New Issue