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

Shouldn't you use tokSuper here? #118

Open
martinus opened this issue Sep 14, 2017 · 0 comments · May be fixed by #197
Open

Shouldn't you use tokSuper here? #118

martinus opened this issue Sep 14, 2017 · 0 comments · May be fixed by #197

Comments

@martinus
Copy link

jsmn/jsmn.c

Line 209 in 3508659

for (i = parser->toknext - 1; i >= 0; i--) {

I think at this position you can use tokSuper, which should save you from iterating the array at this point:

for (i = parser->tokSuper; i >= 0; i--) {

This should speed the parser up a bit.

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

Successfully merging a pull request may close this issue.

1 participant