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

Performance on large grammar files is not so good #24

Open
d2a-raudenaerde opened this issue Jul 29, 2022 · 3 comments
Open

Performance on large grammar files is not so good #24

d2a-raudenaerde opened this issue Jul 29, 2022 · 3 comments

Comments

@d2a-raudenaerde
Copy link

d2a-raudenaerde commented Jul 29, 2022

I'm working on the jsqlparser, and editting the jjt in Intellij with the javacc plugin, makes my laptop go 100% cpu usage for over a minute.

The file itself:
https://github.com/JSQLParser/JSqlParser/blob/master/src/main/jjtree/net/sf/jsqlparser/parser/JSqlParserCC.jjt

I'm on the latest intellij ultimate (2022.2) and plugin version: 1.10

@oowekyala
Copy link
Owner

Hi, I just profiled the plugin on your grammar. I think the problem is in that the java injection is slow (the injected Java file is very large). A workaround is to switch the injection level to "Partial" in Settings > Languagues and Frameworks > JavaCC, that improves the situation for me at least. I'm not sure what else I can do to improve this.

Capture d’écran de 2022-07-29 12-48-45

@d2a-raudenaerde
Copy link
Author

Thanks for the quick reply. Unfortunately, it already is "Partial". I'll try turning it off as well.

@d2a-raudenaerde
Copy link
Author

Setting to 'Disabled' keeps it working reasonably. Thanks for the tip!

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

2 participants