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

Antlr4 performance workaround #1323

Merged
merged 2 commits into from
Aug 15, 2023
Merged

Conversation

mint-thompson
Copy link
Collaborator

Completes task CIMPL-1153.

Modifying the babel configuration and rebuilding antlr4 restores performance to an acceptable speed. This workaround can be removed when the configuration change is available in the official antlr4 package.

To test, change to the PR's branch, then run npm pack to create a .tgz file for the package. Then, run npm install -g <package-name>.tgz to globally install the package. This will add the workaround to your globally installed version of SUSHI. Then, go to any SUSHI project and build it. You should notice that the FSH text import is restored to an acceptable speed and is much faster than in v3.3.0. A test repo is available that clearly demonstrates the performance difference.

Copy link
Collaborator

@jafeltra jafeltra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I confirmed that this has much better performance than 3.2.0 and 3.3.0, and it is comparable to 3.1.0. Thanks for making this fix! Hopefully antlr gets an update out soon, but this seems like a safe workaround for us in the meantime.

@mint-thompson mint-thompson merged commit 71c3151 into master Aug 15, 2023
14 checks passed
@mint-thompson mint-thompson deleted the antlr4-performance-workaround branch August 15, 2023 18:57
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

Successfully merging this pull request may close these issues.

2 participants