You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have some .exs files(unit test) that contain more than 300 lines(some 1000+). When I hit the 'enter', or do a copy/paste, the editor is frozen for 1-2 seconds. I have turn off all the plugins except the intellj-elixir. However, when I turn off this one, everything works fine. I have increased my memory for the idea VM. Is there a solution for this? I just turned from emacs and this plugin help me a lot.
Thanks.
The text was updated successfully, but these errors were encountered:
Do you have a lot of stabs in the file? That is ->s? There's a known performance issue with the grammar because it needs to do look-aheads and backtracks to determine if the next line is the starting expression -> or just an expression in the body of the last clause.
Yes, I do have lots of that. We have some mock functions in unit test to reduce the duplicates work. Is it possible to fix the issue? Or some workaround?
Thanks.
Yeah, it's possible to fix the issue? Sure. Do I understand how to fix it? Not really. See #580.
Work-arounds in your own Elixir code are to have fewer ->, so have more named functions that you take references to with & instead of inlined fn with ->.
If you can post the the file that causes the problems, I can use it as a test case for #580. Go 👍 the description for #580 to vote for it too.
I have some .exs files(unit test) that contain more than 300 lines(some 1000+). When I hit the 'enter', or do a copy/paste, the editor is frozen for 1-2 seconds. I have turn off all the plugins except the intellj-elixir. However, when I turn off this one, everything works fine. I have increased my memory for the idea VM. Is there a solution for this? I just turned from emacs and this plugin help me a lot.
Thanks.
The text was updated successfully, but these errors were encountered: