cats
cats copied to clipboard
[Perf] `Set.contains(value)` vs `alleyCatsSetTraverse.contains_(value)`
Set.contains(value)is O(1).alleycats.std.SetInstances.alleyCatsSetTraverse.contains_(value)is in worst case O(n).
They may have different behaviors :
Set.contains()usehashCode().contains_()useEq.eqv().
Optimization may be impossible ?
Ah, good point. Yeah, this probably can't be fixed.
A warning in the ScalaDoc may be useful for some FoldableOps functions ?