mirror of
https://github.com/dart-lang/sdk
synced 2024-10-14 15:21:54 +00:00
76711d10af
Make sure Future.value constructor is inlined, so 'value == null' test can be removed. Also, removes the implicit cast to FutureOr<T> on all code paths and only leave a faster 'value as T' cast in case value == null. EmptyFutureTest benchmark in AOT/null safety mode on linux/x64: +11.62% Change-Id: I56916d3a1f6a60e3fc9c50cd565db71aea6ab975 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/155928 Reviewed-by: Régis Crelier <regis@google.com> Reviewed-by: Martin Kustermann <kustermann@google.com> Commit-Queue: Alexander Markov <alexmarkov@google.com> |
||
---|---|---|
.. | ||
bin | ||
lib | ||
api_readme.md | ||
BUILD.gn |