-
Notifications
You must be signed in to change notification settings - Fork 308
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
Reduce amount of memory required for npm run lint
#3916
Comments
Yeah.... 😢 I've noticed that running On one hand, as you say, this feels slightly unsustainable. On the other hand, given that a single file is slow, some of these performance concerns may be As for possible actionable solutions:
Unfortunately I don't think Biome is ready for prime time quite yet. In particular, there is no equivalent for |
Yeah I'm mostly concerned about it in CI, since I had to bump This doesn't get better if you lint individual packages at a time (still run OOM consistently); maybe linting individual files one at a time will work but that's definitely going to increase the time to lint significantly in CI or if you want to lint the whole codebase locally. I think we have to figure out what is using so much memory, 6GB is quite ludicrous imo 😅 |
Using
I know your main concern is memory usage, but I assume time is roughly correlated with memory usage. I wonder if we could sponsor someone to port the |
Using Current settings on Disabling Disabling all Removing Removing This is not a perfect test, because Node.js will change it's GC behavior depending on |
The implementation of Of the Biome TypeScript ESLint rules, I don't see any that come close to this level of semantic analysis. Most of them are simple checks that can be performed by just looking at the tokens. To implement import { foo } from 'bar';
foo(); There's no shortcuts here 🫤 |
Currently on my branch |
Attaching
So clearly it's due to ESLint + TypeScript. Given that When you ran project-by-project, did you do that from the root directory or from within the individual package directory? Zooming out... I'm a little skeptical that there's any low hanging fruit here. Running one project at a time may help, but as you noted, it's not a silver bullet. I believe that the I'm open to suggestions, but I don't see any easy solutions here 😞 Lotta lead bullets, no silver bullets. |
Using |
Yeah maybe no real solution for now other than scaling everything up... definitely should keep a passive look out for potential solutions, especially around |
As the codebase grows, it seems that our
npm run lint
is running out of memory at higher and higher memory usage.There are a few things that may be worth trying:
Just seems like the constant increase in memory requirement to run
lint
is not sustainable, so we might want to keep a look out for solutions hereThe text was updated successfully, but these errors were encountered: