-
Notifications
You must be signed in to change notification settings - Fork 62
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
Moved the parsers into a hash table #25
Conversation
Thanks. That seems an acceptable performance loss! |
Wouldn't it make more sense to use an LPeg grammar table for this? |
Lunamark already uses a grammar table (see the The helper table could be rewritten as an LPeg grammar table, although a couple |
This series of commits moves parsers into a separate hash table as
discussed in #24. The average CPU time in seconds measured by
make bench
(500 samples) went up from 0.617380 to 0.632300.This is likely due to the hash table access overhead as you predicted.