debox.Map[Int, AnyRef].contains(key: Int) boxes, I do not know exactly why, but the performance suffers quite a bit:  This is on Scala 2.11.2. I wonder if it is the inner tail recursive method that causes specialization to fail.