Skip to content

Commit

Permalink
use faster hasher
Browse files Browse the repository at this point in the history
this speeds up one simulation run from ~75s to ~55s
  • Loading branch information
ekiwi committed Dec 5, 2024
1 parent 6caa9fc commit ffcb16e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion patronus/src/expr/eval.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ use baa::{
ArrayMutOps, ArrayOps, ArrayValue, BitVecMutOps, BitVecOps, BitVecValue, BitVecValueIndex,
BitVecValueRef, IndexToMutRef, IndexToRef, Value, Word,
};
use rustc_hash::FxHashMap;
use smallvec::SmallVec;
use std::collections::HashMap;

Expand All @@ -22,7 +23,7 @@ type SymbolValueStoreIndex = u32;
pub struct SymbolValueStore {
arrays: Vec<ArrayValue>,
bit_vec_words: Vec<Word>,
lookup: HashMap<ExprRef, SymbolValueStoreIndex>,
lookup: FxHashMap<ExprRef, SymbolValueStoreIndex>,
}

impl SymbolValueStore {
Expand Down

0 comments on commit ffcb16e

Please sign in to comment.