mirror of
https://github.com/dart-lang/sdk
synced 2024-11-05 18:22:09 +00:00
16289b490d
On my computer: 1) If creating a Set from a list mapping simply adding each entry to the set seems faster. 2) When mapping a list to a new list using `List.generate` seems to be the fastest. Prefer `growable: false` if not needing it to be growable. 3) When creating a new list `.of` seems faster than `.from`. Change-Id: I7f3d66100246e170cf09431dddf64b3ec39579f5 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/228643 Reviewed-by: Johnni Winther <johnniwinther@google.com> Commit-Queue: Jens Johansen <jensj@google.com> |
||
---|---|---|
.. | ||
ikg | ||
patterns |