_Comment made by: michalmarczyk_
For completeness, branching on {{Map}}, {{Set}} etc. directly in {{hasheq}}, as with Jozef's original patch, results in the following timings in the microbenchmark introduced in my previous comment:
|xor|315.866626 ns|
|juhm|18.520133 µs|