Skip to content

Add MemoryCopy IL instruction and take advantage of it in various places #42072

@mkustermann

Description

@mkustermann

We should add a generic MemoryCopy IL instruction, capable of copying ranges of bytes where source and destination can be _OneByteString / _TwoByteString as well as various typed data as long as their element sizes agree.

This can be used for

  • Faster UTF-8 decoding
  • Faster UTF-8 encoding
  • Faster List.setRange() implementation for typed data
  • Faster String.fromCharCodes() implementation for Uint8List input
  • Faster String.codeUnits implementation

Metadata

Metadata

Assignees

Labels

area-vmUse area-vm for VM related issues, including code coverage, and the AOT and JIT backends.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions