Skip to content

dart2wasm List<int> is using fully boxed integer representation #52714

@mraleph

Description

@mraleph

Both VM and dart2js benefit from tagging when operating with <int>[...], dart2wasm however boxes integers stored in the list - which makes it slow compared to native and JS targets.

This impacts a number of microbenchmarks like Fannkuch or Mandelbrot, which use List<int> on hot paths.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-dart2wasmIssues for the dart2wasm compiler.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