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

@@ -38,7 +38,7 @@ namespace MalachScript::Parser {
if (pos >= _scriptLength) {
return '\0';
}
return *(_script.data() + pos);
return _script[pos];
}
LexToken* LexNext();