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

How to improve the deserialization time of ATNSimulator? #3554

Open
tzzhwj opened this issue Feb 23, 2022 · 0 comments
Open

How to improve the deserialization time of ATNSimulator? #3554

tzzhwj opened this issue Feb 23, 2022 · 0 comments

Comments

@tzzhwj
Copy link

tzzhwj commented Feb 23, 2022

ANTLR4 is a great tool.

But I have faced a performance problem.
As @ericvergnaud said,“We should focus on deserialization time, and memory size after deserialization.”

I have used ANTLR 4.9.3 to generate my CssParser.java and Csslexer.java from css3.g4

Both the two class spend about 70ms - 100ms to deserialize the _serializedATN which is a long String.

Is there any way to decrease the deserialization time of ATN?

Thank you very much for your support!

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

1 participant