tag | c825333f5a1c26e6a33985710e668dc335643ee7 | |
---|---|---|
tagger | The Android Open Source Project <[email protected]> | Thu Jan 04 16:58:11 2024 -0800 |
object | f059aaa2a8ff1f6374caec37d04e0461b9d4954f |
frc_340819030 (10622519,com.google.android.go.media,com.google.android.go.media.swcodec,com.google.android.media,com.google.android.media.swcodec)
commit | f059aaa2a8ff1f6374caec37d04e0461b9d4954f | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <[email protected]> | Thu May 11 18:07:13 2023 +0000 |
committer | Android Build Coastguard Worker <[email protected]> | Thu May 11 18:07:13 2023 +0000 |
tree | 40c1ec7f8824c6f65686d9ffb768102f82961542 | |
parent | ccdfa528581b5b1cb053ed29eda98464d1cee8e0 [diff] | |
parent | c30791a55e277f30ae20d6a6db19a72e096cab3c [diff] |
Snap for 10078606 from c30791a55e277f30ae20d6a6db19a72e096cab3c to aml-frc-release Change-Id: I6d4729677683ba2c2d1960bbdac79674a5cab943
“Small vector” optimization for Rust: store up to a small number of items on the stack
use smallvec::{SmallVec, smallvec}; // This SmallVec can hold up to 4 items on the stack: let mut v: SmallVec<[i32; 4]> = smallvec![1, 2, 3, 4]; // It will automatically move its contents to the heap if // contains more than four items: v.push(5); // SmallVec points to a slice, so you can use normal slice // indexing and other methods to access its contents: v[0] = v[1] + v[2]; v.sort();