Skip to content

The analyzer parses files up to three times #61409

@bwilkerson

Description

@bwilkerson

The analyzer parses each file up to three times, and this parsing shows up in the performance profile as a not insignificant part of the total time. There are a couple of things we could investigate that might improve the overall performance of the analyzer.

  1. Caching the parsed AST until the analysis is complete so that we only need to parse each file one time.

  2. Having a mode in the parser where it would skip function bodies (when all of the opening and closing braces are balanced, otherwise skipping the bodies might impact recovery).

  3. Other general improvements to the performance of the parser.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-dart-modelFor issues related to conformance to the language spec in the parser, compilers or the CLI analyzer.model-performancePerformance/memory issues in analyzer/cfetype-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