commit | b17c62120b646f378c0b842b3d7fcce8a5540e3e | [log] [tgz] |
---|---|---|
author | Dominik Laskowski <domlaskowski@google.com> | Mon May 09 09:36:19 2022 -0700 |
committer | Dominik Laskowski <domlaskowski@google.com> | Mon May 16 08:13:29 2022 -0700 |
tree | 13f01098a51f9c387d3e8c87683f55ef40de4ba4 | |
parent | bb448ce9aa521f9574d94c9ec2d57eb7d37382cb [diff] |
FTL: Yield futures without overhead ftl::yield, which lifts T to std::future<T>, incurs the cost of allocating, ref counting, and locking the latter's shared state. Consolidate the existing std::future extensions into ftl::Future, and optimize ftl::yield by including static storage for T within. Bug: 232436803 Test: simpleperf (-31% cycles in postFramebuffer) Change-Id: I9a7ca7de17e7af10515de97d2f6a0dfa24e35d7a