-
Notifications
You must be signed in to change notification settings - Fork 33
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
Generated too large parser.c ~ 83M #59
Comments
I think we can generate the |
Yeah, there doesn't seem to be redundant code here, nor particularly complex rules, but still a very large parser is generated. With compared to the But the generated I don't have an idea on this yet 😭 |
There is related issue in tree-sitter/tree-sitter#1041 |
@m-novikov Yes, I've seen this similar issue too. But there is not much useful information here. By remove the generated code from the repo, we just ignore this issue. On the other hand, when a user using tree-sitter-sql, for example, using it in Python code via the
If we remove the So, to solve the problem, we need to do something to reduce the size of generated code. By now, I did some investigations on this.
From the above data, we can see that the Unfortunately , on how to optimize it, I still have no good idea. Could you guys give me some suggestion? |
|
With all PRs merged, tree-sitter will generate a very large parser.c file (about 83M). And it takes about 1 min to load the parser by tree-sitter python binding.
Unfortunately I don't have an idea at the moment on how to reduce its size 😭
@m-novikov Have you ever encountered a similar problem, or have any suggestions for optimization?
The text was updated successfully, but these errors were encountered: