Skip to content

Dart analyzer performance drops drastically with analyzer plugin enabled #61684

@khoadng

Description

@khoadng

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

No one assigned

    Labels

    area-devexpFor issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.devexp-plugin

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions