From b71029c2f4aedd614b81028f57e4b62eb0146c92 Mon Sep 17 00:00:00 2001 From: Bruce Guenter Date: Fri, 22 Oct 2021 17:43:46 -0600 Subject: [PATCH] chore(performance): Enable the "union" feature on SmallVec (#9772) This feature is not enabled by default. From the docs: When the union feature is enabled smallvec will track its state (inline or spilled) without the use of an enum tag, reducing the size of the smallvec by one machine word. Signed-off-by: Bruce Guenter --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 9fc7c359b71da..1e186d8ff1f72 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -257,7 +257,7 @@ redis = { version = "0.21.3", default-features = false, features = ["connection- regex = { version = "1.5.4", default-features = false, features = ["std", "perf"] } seahash = { version = "4.1.0", default-features = false, optional = true } semver = { version = "1.0.4", default-features = false, features = ["serde", "std"], optional = true } -smallvec = { version = "1", optional = true } +smallvec = { version = "1", optional = true, features = ["union"] } snafu = { version = "0.6.10", default-features = false, features = ["futures"] } snap = { version = "1.0.5", default-features = false, optional = true } socket2 = { version = "0.4.2", default-features = false }