rorygraves / scalac_perf

The Scala programming language
http://www.scala-lang.org/
16 stars 3 forks source link

Vector.equals uses iterators. Could be optimised #75

Open mkeskells opened 6 years ago

mkeskells commented 6 years ago

If a Vector is compared to another Vector (or some other collection that efficiently implements length and apply) then we should prefer that mechanism, with a default/fallback to the existing iterator mechanism

This issue was inspired by an observed issue in a production application

We should include a benchmark in any fix