tag | 8574009cbeea7a7bd2a60f59c388f924fd3e375d | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Thu Apr 27 14:49:25 2023 -0700 |
object | 616db34d2172f77090d764f8a398203878b84156 |
aml_med_331612000 (9568309,com.google.android.media)
commit | 616db34d2172f77090d764f8a398203878b84156 | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Mon May 09 20:36:30 2022 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Mon May 09 20:36:30 2022 +0000 |
tree | da86de748981dd96113865df11834b360d9da02b | |
parent | 06b926d5af978a3f55ee650204905ae411407b64 [diff] | |
parent | dd67dd31f83d56d34f933f3ff0204baa55a68aac [diff] |
Snap for 8562061 from dd67dd31f83d56d34f933f3ff0204baa55a68aac to mainline-media-release Change-Id: Icb5459e111742a372fad1a76be9c360dc2e7c91f
“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();