fish-shell/fish-rust
Henrik Hørlück Berg 3a484480bf Remove premature optimization
The `impl<T> Hash for &T` hashes the string itself[^1].
It is unclear if that is actually faster than just calling `keyfunc` multiple times (they should all be linear).
For context, Rust by default uses SipHash 1-3 db1b1919ba
An alternative would be to store it as raw pointers aka `*const T`, which have a cheaper hash impl.
That has a more complicated implementation + removes lifetimes.

This commit rather removes the premature optimization.

[^1]: Source: https://doc.rust-lang.org/std/ptr/fn.hash.html
2023-08-07 21:01:11 -07:00
..
src Remove premature optimization 2023-08-07 21:01:11 -07:00
widestring-suffix Update dependencies for asan to work 2023-06-29 20:02:43 -05:00
build.rs Adopt the new function store and rewrite builtin_function 2023-07-23 17:18:36 -07:00
Cargo.lock Use a faster, deterministic RNG in the string escape tests 2023-07-04 13:27:53 -07:00
Cargo.toml Use a faster, deterministic RNG in the string escape tests 2023-07-04 13:27:53 -07:00