-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Open
Labels
area-devexpFor issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.For issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.devexp-plugin
Description
Description:
After enabling the new analyzer plugin system, dart analyze
runtime increases significantly on a fairly large monorepo ( ~150k lines of code, ~2100 Dart files and a dozen internal packages)
Macbook Pro M1: 6 seconds -> 42 seconds
Macbook Pro M4: 4 seconds -> 25 seconds
Remove the plugin
from analysis_options.yaml
bring the performance back to normal
Repo / branch for reproduction:
https://github.com/khoadng/Boorusama/tree/analyzer-plugin-profile
In this branch, the plugin only registers a single no-op rule.
Expected behavior:
Analyzer performance should remain close to baseline when adding a no-op or minimal plugin.
Environment:
- FVM to manage Dart/Flutter SDK versions
- Dart SDK: 3.10.0-285.0.dev
- analysis_server_plugin: ^0.3.1
- analyzer: ^8.2.0
Metadata
Metadata
Assignees
Labels
area-devexpFor issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.For issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.devexp-plugin