isNaN has a boxing cost, bring it up?
nrinaudo opened this issue · comments
The work around, in case things are performance critical, is for a given d: Double
, to run d == d
.
There might not be a boxing cost any longer: https://github.com/scala/scala/blob/v2.12.8/src/library/scala/Predef.scala#L461