Consider using rustc-hash
instead of the default std
hasher for statement caching.
#233
Labels
rustc-hash
instead of the default std
hasher for statement caching.
#233
I ran a few benchmarks on plausible SQL queries of different sizes, and this change improves hashing performance by 30% to 50%.
The std hasher is DoS-safe and cryptographically "strong" (broadly speaking), which is probably not needed for this library since in most cases the author controls which statements are prepared.
The text was updated successfully, but these errors were encountered: