Skip to content

Commit

Permalink
slightly faster even when it shortcircuits plus saves codegen size
Browse files Browse the repository at this point in the history
  • Loading branch information
h3xds1nz committed Jun 7, 2024
1 parent 4f9f766 commit e3f6978
Showing 1 changed file with 1 addition and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -636,21 +636,7 @@ private static bool IsAsciiLetterOrDigit(char character) =>
/// </summary>
/// <param name="ch">input character</param>
/// <returns></returns>
private static bool IsLinearWhiteSpaceChar(char ch)
{
if (ch > ' ')
{
return false;
}

foreach (char c in LinearWhiteSpaceChars)
{
if (ch == c)
return true;
}

return false;
}
private static bool IsLinearWhiteSpaceChar(char ch) => LinearWhiteSpaceChars.Contains(ch);

/// <summary>
/// Lazy initialization for the ParameterDictionary
Expand Down

0 comments on commit e3f6978

Please # to comment.