tag | ac469d4c5237b8cd56c71bb5155a67842c945f0b | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Mon Apr 10 19:18:46 2023 -0700 |
object | 22d5cc52bc7951d8abd70d0981895306b0577023 |
Android Platform 13.0.0 Release 6 (TPM1.230223.001)
commit | 22d5cc52bc7951d8abd70d0981895306b0577023 | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Tue Nov 01 21:34:04 2022 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Tue Nov 01 21:34:04 2022 +0000 |
tree | da86de748981dd96113865df11834b360d9da02b | |
parent | c3e5b09826dcf15acbe05a8b7941bc6aa0494026 [diff] | |
parent | ef9db0efcb1bac17430a4d461cb155967cbbad40 [diff] |
Snap for 9239618 from ef9db0efcb1bac17430a4d461cb155967cbbad40 to tm-platform-release Change-Id: I88413e6669d8562631c837a7bc97153913f5292b
“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();