-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
v2.15.0 is leaking memory #1266
Comments
Thanks for identifying the commit! This is not the first time Memory leaks are always my top priority after a release. I'll try to take a look at lunch today. |
@benmosher you might also want to take a look at PR #1271 |
@sergei-startsev thanks for that! I think I found the issue though: For some reason, the function closer for Also: I'm not sure your PR will actually work in practice; if non- |
@benmosher The PR idea is not to parse docs if it's not required, I wouldn't like to build As for cache, we can distinguish |
Sure, but the SourceCode instances shouldn’t be retained at all to begin with. And I don’t think they cost much CPU-wise. |
Published as 2.16.0. Thanks so much for both of your help on this! |
After updating to v2.15.0 eslint started running out of memory on our fairly large project.
I was able to reproduce something similar when running the plugin against a dozen copies of lodash-es. I can create a repro case, but it's rather trivial.
One rule is enough to see the difference between v2.14.0 and v2.15.0:
This seems to be caused by 05c3935. I've run some memory profiles, but I can't pinpoint the exact source of the leak other than that it seems to originate in ExportMap.js. It's possible that the leak was always there, but extra parsing and memory allocations made it more evident.
The text was updated successfully, but these errors were encountered: