Fixed some low hanging fruit in performance.

This commit is contained in:
2020-10-09 12:55:49 +02:00
parent 43f080cc48
commit dcb6c58f90
6 changed files with 79 additions and 53 deletions

View File

@@ -466,7 +466,7 @@ namespace MalachScript::Parser {
}
auto str = _script.substr(start, offset);
Progress(offset - 1);
auto hash = Identifier::HashStringView(str);
auto hash = Identifier::Hash(str);
switch (hash) {
case Identifier::Hash(u8"and"):
return Create<LexTokenImpl<LexTokenKind::AndKeyword>>(TextSpan(start, _position));