Skip to content

[dart2js] value range analysis very slow for many list accesses. #56919

@rakudrama

Description

@rakudrama

It is unusual for a method to have thousands of indexing expression off the same list, but when it does, compilation can be very slow.

The root cause is that inserting RangeConversion instructions can be quadratic in straight-line code, but on top of that, there is another N multiplier in how the usedBy list is updated, removing each updated use one at a time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3A lower priority bug or feature requestarea-web-jsIssues related to JavaScript support for Dart Web, including DDC, dart2js, and JS interop.dart2js-optimizationweb-dart2js

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions