Skip to content

[dart2wasm] Investigate switching to JS strings: What are perf/size implications?Β #59699

@mkustermann

Description

@mkustermann

Now that we have a js-string builtin proposal implemented and optimized in Wasm runtimes (e.g. V8), we should investigate switching to JS strings: What are perf/size implications?

If we cannot switch, we may look into having a bi-directional cache of strings, so repeated <dartString>.toJS will only do work on the first invocation and use the cached version afterwards. See also flutter/flutter#159400

Metadata

Metadata

Assignees

Labels

area-dart2wasmIssues for the dart2wasm compiler.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions