Skip to content

Commit

Permalink
Merge pull request #117 from adamreichold/ahash
Browse files Browse the repository at this point in the history
Use AHash instead of SipHash for storing attributes and classes.
  • Loading branch information
cfvescovo authored Mar 3, 2023
2 parents f06bd0b + e827738 commit 80ba1a5
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 2 deletions.
19 changes: 19 additions & 0 deletions Cargo.lock

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

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ matches = "0.1.10"
selectors = "0.24.0"
smallvec = "1.10.0"
tendril = "0.4.3"
ahash = "0.8"
indexmap = { version = "1.9.2", optional = true }

[dependencies.getopts]
Expand Down
7 changes: 5 additions & 2 deletions src/node.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
//! HTML nodes.

#[cfg(not(feature = "deterministic"))]
use std::collections::{hash_map, HashMap};
use std::collections::{hash_set, HashSet};
use ahash::AHashMap as HashMap;
use ahash::AHashSet as HashSet;
#[cfg(not(feature = "deterministic"))]
use std::collections::hash_map;
use std::collections::hash_set;
use std::fmt;
use std::ops::Deref;

Expand Down

0 comments on commit 80ba1a5

Please sign in to comment.