Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lexer #4

Open
ghost opened this issue Dec 29, 2018 · 0 comments
Open

Lexer #4

ghost opened this issue Dec 29, 2018 · 0 comments

Comments

@ghost
Copy link

ghost commented Dec 29, 2018

The lever involves some very complicated operations. You have hashing as a token mapper and all these string operations. Since String has variable lengths encoding some of the O(n) operations are secretly O(n^2). I have the same problem in my lexer for Swizzle but I use string indices rather than this so the string only has to scan starting from the current index.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants