Upgrade thin-vec to 0.2.21, including fix for .collect() capacity

This includes https://github.com/mozilla/thin-vec/pull/99 , which makes
thin-vec respect size_hint when collecting.

In particular, this causes collections of 1-3 items to not be grown to a
capacity of 4. The compiler has a lot of `TinyVec`s in the 1-3 range, so
this substantially helps memory, and seems neutral on instructions.

For aws-sdk-ec2 full check, this saves 30.69 MiB max-rss (0.55% of peak
RSS).
This commit is contained in:
Josh Triplett
2026-10-07 17:22:58 -07:00
parent 8d1a764304
commit 611e0fdb82
17 changed files with 18 additions and 18 deletions

View File

@@ -5703,9 +5703,9 @@ dependencies = [
[[package]]
name = "thin-vec"
version = "0.2.19"
version = "0.2.21"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "79def32ffcd477db1ff26f76dab9e3a91f0bd42a85ca96577089b24623056f9d"
checksum = "d6a4b9ba8738cb4a4f399d37e266becfd475e75eb73425b87a05a2f2039ba63e"
[[package]]
name = "thiserror"