Skip to content

Commit

Permalink
Merge 1e82084 into 60636fb
Browse files Browse the repository at this point in the history
  • Loading branch information
sokra committed Sep 28, 2023
2 parents 60636fb + 1e82084 commit b67dcbc
Show file tree
Hide file tree
Showing 25 changed files with 473 additions and 253 deletions.
13 changes: 9 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions Cargo.toml
Expand Up @@ -222,6 +222,12 @@ serde_qs = "0.11.0"
serde_with = "2.3.2"
serde_yaml = "0.9.17"
sha2 = "0.10.6"
smallvec = { version = "1.11.1", features = [
"serde",
"const_generics",
"union",
"const_new",
] }
sourcemap = "6.0.2"
syn = "1.0.107"
tempfile = "3.3.0"
Expand Down
1 change: 1 addition & 0 deletions crates/turbo-tasks-auto-hash-map/Cargo.toml
Expand Up @@ -7,3 +7,4 @@ edition = "2021"

[dependencies]
serde = { workspace = true, features = ["derive"] }
smallvec = { workspace = true }
6 changes: 4 additions & 2 deletions crates/turbo-tasks-auto-hash-map/src/lib.rs
Expand Up @@ -6,7 +6,9 @@ pub mod set;
pub use map::AutoMap;
pub use set::AutoSet;

// Values based on data from https://github.com/yegor256/micromap#benchmark

/// Maximum size of list variant. Must convert to HashMap when bigger.
pub const MAX_LIST_SIZE: usize = 16;
pub const MAX_LIST_SIZE: usize = 32;
/// Minimum size of HashMap variant. Must convert to List when smaller.
pub const MIN_HASH_SIZE: usize = 8;
pub const MIN_HASH_SIZE: usize = 16;

0 comments on commit b67dcbc

Please sign in to comment.