dart-sdk/sdk
Alexander Markov 76711d10af [vm/nnbd] Improve performance of Future.value
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>
2020-07-28 20:38:49 +00:00
..
bin [Core Libraries] Eliminate the fork in the core libraries. 2020-06-16 23:37:36 +00:00
lib [vm/nnbd] Improve performance of Future.value 2020-07-28 20:38:49 +00:00
api_readme.md Update the API docs readme 2020-01-16 21:23:09 +00:00
BUILD.gn Reland "[ VM / DartDev ] Launch DartDev in an isolate within a single main Dart process" 2020-07-21 16:23:18 +00:00