Optimize the lexer by iterating over bytes #335
Labels
E-Medium
Medium difficulty problem
Hacktoberfest
Hacktoberfest 2021 - https://hacktoberfest.digitalocean.com
lexer
Issues surrounding the lexer
performance
Performance related changes and issues
Milestone
As
maciejh
mentioned in Reddit, iterating over characters is not fast. We should iterate over bytes, but we have to take into account that identifiers, strings, comments and more can have non-ASCII characters, since JavaScript is UTF-8.Nonetheless, we can use byte-iteration for detecting language features much faster.
The comment:
The text was updated successfully, but these errors were encountered: