Skip to main content

compute_expression_hash

Function compute_expression_hash 

Source
pub fn compute_expression_hash(expr: &Expression) -> u64
Expand description

Compute a u64 hash of an expression without string allocation. This is O(expression_size) and avoids Debug formatting overhead. Use this for cache keys instead of format!(“{:?}”, expr). Uses FxHasher which is 2-5x faster than SipHash for small keys.