Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Use rapidhash::quality::RandomState in stdlib crate
  • Loading branch information
fanninpm committed May 24, 2026
commit 3c484f4b4c6669effbd42974e2ae1fc89c4c2ef1
2 changes: 1 addition & 1 deletion Cargo.lock

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

2 changes: 1 addition & 1 deletion crates/stdlib/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ ruff_python_ast = { workspace = true }
ruff_text_size = { workspace = true }
ruff_source_file = { workspace = true }

ahash = { workspace = true }
ascii = { workspace = true }
crossbeam-utils = { workspace = true }
flame = { workspace = true, optional = true }
Expand All @@ -51,6 +50,7 @@ num-traits = { workspace = true }
num_enum = { workspace = true }
parking_lot = { workspace = true }
phf = { workspace = true, default-features = true, features = ["macros"] }
rapidhash = { workspace = true }

memchr = { workspace = true }
base64 = { workspace = true }
Expand Down
2 changes: 1 addition & 1 deletion crates/stdlib/src/contextvars.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ mod _contextvars {
use indexmap::IndexMap;

// TODO: Real hamt implementation
type Hamt = IndexMap<PyRef<ContextVar>, PyObjectRef, ahash::RandomState>;
type Hamt = IndexMap<PyRef<ContextVar>, PyObjectRef, rapidhash::quality::RandomState>;

#[pyclass(no_attr, name = "Hamt", module = "contextvars")]
#[derive(Debug, PyPayload)]
Expand Down