-
Notifications
You must be signed in to change notification settings - Fork 10
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
Parser: box parser #19
Conversation
I guess that the real culprit is the AST (#8) |
can you point me toward where that could be fixed? |
Just run |
I have investigated this a bit further. Here is the list of the 15 biggest types, along with their size:
The main reason That basically leaves us with two options:
The former is easier since it doesn't involve editing the grammar file. |
Thanks for your investigation. We should try to rollback 8e9925e |
@gwenn, I have changed my mind and decided to go with making the AST itself leaner, I'll keep you updated |
I'm closing this pr for now, I'll get back to it when I have more time to work on optimizing the AST itself |
@MarinPostma For your information, |
This PR boxes the
yyParser
inParser
. The reason for that is that it is huge (141464 bytes!), and I encountered stack overflows because of this.