Fixed some low hanging fruit in performance.
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user