-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Analyzer reported to be very slow in 1.13 #24856
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
Comments
Might be also related to #24611 as people in that email thread are saying that they have a lot of pubspec-based Dart packages configured as a single IntelliJ IDEA/WebStorm project. |
As stated, this issue is not actionable. Are there problems beyond those reported in other issues? Is this intended to be a tracking issue? |
This came in through the misc group, if you need more info, just reply to the thread there. |
Are the users using .package files? |
We need to see their logs right away. While I doubt we are seeing a regression in actual Analyzer performance, we have seen a couple of scenarios that can result in a severe performance problem in IntelliJ using the Analyzer. For example, are the users using .package files? We had reports from Alex last month about issues running Pub too many times when the projects did not contain .package files (or had a huge number of pubspecs in a single project). We've also seen severe slowness in situations where Analyzer fails and restarts repeatedly (which the logs might shed some light on). |
I just run |
It uses the file if it exists and the directory only if the file doesn't exist. The plan is for pub to stop producing the directory. |
Any updates on this issue? |
We have not been able to reproduce the same level of performance problems that our users have seen, but we did find one problem that might account for part of the slowness being reported. It would effect performance for anyone that has a large numbers of HTML files in the |
@zoechi and anyone else who's on this thread - can you please try out our new build of the SDK, which has a number of fixes which may help? It's available at https://storage.googleapis.com/dart-archive/channels/dev/raw/1.13.0-dev.7.11/sdk/dartsdk-{macos,linux,windows}-x64-release.zip Thanks for any info that you can provide after trying it! |
I assume these fixes are in bleeding_edge as well |
Correct. |
Hard to say, I don't know myself how to reliably reproduce the issue. Currently I'm working on a small console application (with a few dependencies like shelf, shelf_static, args, unscripted, grinder, test) I started today.
|
We're working hard on this - in the meantime, if you are having issues with the analyzer, here's a document to help you help us by gathering as much info as possible: https://docs.google.com/document/d/1s4PTof1x7RyxXYX1yO31ByvZsQoDMM7edFIW1SKP25U/edit?pli=1 |
As Dan mentioned, we’re working hard on resolving these issues. One of the things we’ve discovered is that there can be a significant performance improvement if
The first counts the number of files reachable from your root directory without following symlinks, the second counts the number of files reachable from your root directory by following symlinks. Then, you can remove all of the
Please let us know whether running the second script improves server’s performance for you. |
The 7.11 build that we posted a link to last Thursday had some problems that are fixed by the 7.12 build (http://gsdview.appspot.com/dart-archive/channels/dev/raw/1.13.0-dev.7.12/sdk/). We would be grateful to hear whether this fixes the problems you've been running into. |
Closing this bug as there is no new feedback. If new issues are found, please open new issues. |
Several users are reporting very poor performance in the Analyzer in the 1.13 release candidate builds:
https://groups.google.com/a/dartlang.org/forum/#!topic/misc/pQCl_cGA_q0
The text was updated successfully, but these errors were encountered: