Refactor _List and _ImmutableList to have shared accessors #48361
Labels
area-vm
Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends.
library-collection
library-core
https://dart-review.googlesource.com/c/sdk/+/231243/9..13/sdk/lib/_internal/vm/lib/compact_hash.dart#b676
33e170e sped up key and value iteration by 20% for mutable and 40-50% for immutable maps. It achieved this by duplicating the iterators so that they do not have a polymorphic call inside.
However, it also regressed the where iterator by ~10%.
This is caused by the where iterator now being more polymorphic and refusing to inline now that there's one extra case.
Related issues:
keys
andvalues
iterables of VM LinkedHashMaps #48282The common super type in Dart is
ListBase
:sdk/lib/collection/list.dart
The text was updated successfully, but these errors were encountered: