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

Question: Using no-cycle causes a node to run out of heap memory #2241

Open
Nokel81 opened this issue Sep 29, 2021 · 1 comment
Open

Question: Using no-cycle causes a node to run out of heap memory #2241

Nokel81 opened this issue Sep 29, 2021 · 1 comment

Comments

@Nokel81
Copy link
Contributor

Nokel81 commented Sep 29, 2021

I am attempting to turn on your no-cycle rule on a repo, namely with lensapp/lens#3547. However, I have run into node (v14) running out of heap memory. I was wondering if you had any pointers as to why this might be happening.

I have tried reducing the depth to 5. With that it no longer runs out of heap memory but instead takes over half an hour to lint (previously it would take about 2 minutes).

@ljharb
Copy link
Member

ljharb commented Sep 29, 2021

To work, the rule has to build up a model of your entire dependency graph. I would expect, however, that there's a lot of improvement to be had here. (Related: #1944 #1943 #2076 #788)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants