feyman2016
feyman2016
@mkeskells I wrote a micro benchmark to compare the performance of **list eq Nil** and **list.isEmpty** , [PR](https://github.com/scala/scala/pull/6808/files) here , and the benchmark results is just as follows: There seems...
@rorygraves @mkeskells I investigated the `scala.util.hashing.MurmurHash3#listHash` as follows: ``` final def listHash(xs: scala.collection.immutable.List[_], seed: Int): Int = { var n = 0 var h = seed var elems = xs...
I tried to find some clue from the machine code of `scala.collection.immutable.List.length`, results as below(**line 339 is where we use eq Nil or isEmpty**): Eq Nil (bench = 100000) ```...