Skip to content

perf: optional fast_hash feature for a faster (non-DoS-resistant) hasher#82

Merged
dsherret merged 1 commit into
mainfrom
perf_fast_hash_feature
Jul 7, 2026
Merged

perf: optional fast_hash feature for a faster (non-DoS-resistant) hasher#82
dsherret merged 1 commit into
mainfrom
perf_fast_hash_feature

Conversation

@dsherret

@dsherret dsherret commented Jul 7, 2026

Copy link
Copy Markdown
Member
Bench Default (SipHash) fast_hash (FxHash) Speedup
package_json_value 17,306 ns 10,856 ns −37.3% (1.59×)
key_heavy_json_value 7,937,820 ns 5,728,275 ns −27.8% (1.39×)
citm_catalog_json_large_value 24,256,990 ns 20,389,000 ns −15.9% (1.19×)
tsconfig_json_value 2,176 ns 2,119 ns −2.6%

This was done before in #16 , but not as a feature flag, which I prefer for this.

@dsherret dsherret merged commit 2f578b2 into main Jul 7, 2026
3 checks passed
@dsherret dsherret deleted the perf_fast_hash_feature branch July 7, 2026 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant