-
-
Notifications
You must be signed in to change notification settings - Fork 647
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
[js] drastic slowdown in Type.enumEq with Haxe 4.0.0 preview 4 #7189
Comments
I'm pretty sure that this is related to the |
Or maybe we should get the |
@AlexHaxe BTW you shouldn't be using |
@Simn actually, this is weird: i'm getting a diagnostic message |
@Simn I think the problem is that the diagnostic comes from the |
I don't think checkstyle uses Type.enumEq on enum abstracts, but that was the smallest example I could come up with. A full example would be to:
|
The sample code doesn't compile any more (but I guess that's intentional):
checkstyle on the other hand compiles fine and I see no difference whether I compile with |
Good! Regarding the |
During tests with the latest Haxe 4 preview 4 and vscode-checkstyle I noticed a drastic slowdown in response times between introducing a checkstyle violation in code and the appearance of a new diagnostic message in problems view. It took like 10-15 seconds, where it should only take a brief moment.
@Gama11 pointed me in the direction of
-D js-enums-as-arrays
and #6350.Setting
-D js-enums-as-arrays
restores speed to previous levels.I tried to build a minimalised demo, and I came up with this: http://try-haxe.mrcdk.com/#5D413
Try running it with Haxe 3 and Haxe 4 and see the difference in speed:
Results with nodejs on command line are comparable to Chrome.
The text was updated successfully, but these errors were encountered: