Skip to content

eliminate implicit casts/dynamic dispatch in DDC's SDK impl #30481

Open
@jmesserly

Description

@jmesserly

Implicit casts and dynamic operations sometimes sneak into the generated code, causing a loss of performance. We could disable these to prevent them from being used in our private patch files/SDK implementation libraries. I'm unsure if the shared SDK code uses either of these, but we could specialize (via external) so DDC can implement those in a typed way.

EDIT: and to be clear, I'm mainly concerned with DDC's own SDK impl code. Because we're using a fair amount of JS builtins, it's easy to accidentally end up with implicit casts or dynamic where you didn't intend to do that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-web-jsIssues related to JavaScript support for Dart Web, including DDC, dart2js, and JS interop.type-performanceIssue relates to performance or code sizeweb-dev-compiler

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions