Skip to content

Analyzer is very slow for large filesΒ #56247

Open
@liamappelbe

Description

@liamappelbe

When generating ObjC bindings using ffigen, it's quite common to have generated files with >10k, or even >100k lines. The analyzer does fine at these sizes, but I'm trying to build a large integration test that generates ~500k lines, and the analyzer starts to choke.

Lines of code Time to analyze
Small library 15k 1.8 sec
Medium library 277k 1.6 sec
Large library 469k 1.6 hours

The files are here. (Couldn't use a gist as they're too big)

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2A bug or feature request we're likely to work onanalyzer-stabilityarea-dart-modelFor issues related to conformance to the language spec in the parser, compilers or the CLI analyzer.type-performanceIssue relates to performance or code size

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions