tag | d851c6623f8f43b1a286efa1278c67e3d387586d | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Wed Feb 01 22:30:13 2023 -0800 |
object | 5159df72e17789351481afe53d35523ce8475800 |
aml_net_331313030 (9393576,com.google.android.captiveportallogin)
commit | 5159df72e17789351481afe53d35523ce8475800 | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Wed May 11 05:12:51 2022 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Wed May 11 05:12:51 2022 +0000 |
tree | da86de748981dd96113865df11834b360d9da02b | |
parent | 06b926d5af978a3f55ee650204905ae411407b64 [diff] | |
parent | dd67dd31f83d56d34f933f3ff0204baa55a68aac [diff] |
Snap for 8570526 from dd67dd31f83d56d34f933f3ff0204baa55a68aac to mainline-networking-release Change-Id: I0aa0008739e6759b494fb5a28d85618daeb8a2bb
“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();