Skip to content

Commit

Permalink
chore(performance): Enable the "union" feature on SmallVec (#9772)
Browse files Browse the repository at this point in the history
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 <bruce.guenter@datadoghq.com>
  • Loading branch information
bruceg authored Oct 22, 2021
1 parent 896c258 commit b71029c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down

0 comments on commit b71029c

Please sign in to comment.