You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove object allocation overhead by peeling off abstraction layer,
revealing that the `ArrayOps` implicit conversions in `Predef`
return value classes.
d3f879a turned `ArrayOps.of<???>` into value classes,
but the non-`AnyVal` result type of the corresponding
`<???>arrayOps` implicit conversions (`ArrayOps[_]`) caused boxing anyway.
The optimized versions are introduced under a new name,
so that the old ones (without `implicit`) can be kept
for binary compatibility, for now.
// TODO: when we remove, these should we drop the underscores from the new generation below? (For source compatibility in case someone was shadowing these.)
333
+
@deprecated("For binary compatibility only. Release new partest and remove in M3.", "2.12.0-M2") defbooleanArrayOps(xs: Array[Boolean]):ArrayOps[Boolean] =newArrayOps.ofBoolean(xs)
334
+
@deprecated("For binary compatibility only. Release new partest and remove in M3.", "2.12.0-M2") defbyteArrayOps(xs: Array[Byte]):ArrayOps[Byte] =newArrayOps.ofByte(xs)
335
+
@deprecated("For binary compatibility only. Release new partest and remove in M3.", "2.12.0-M2") defcharArrayOps(xs: Array[Char]):ArrayOps[Char] =newArrayOps.ofChar(xs)
336
+
@deprecated("For binary compatibility only. Release new partest and remove in M3.", "2.12.0-M2") defdoubleArrayOps(xs: Array[Double]):ArrayOps[Double] =newArrayOps.ofDouble(xs)
337
+
@deprecated("For binary compatibility only. Release new partest and remove in M3.", "2.12.0-M2") deffloatArrayOps(xs: Array[Float]):ArrayOps[Float] =newArrayOps.ofFloat(xs)
338
+
@deprecated("For binary compatibility only. Release new partest and remove in M3.", "2.12.0-M2") defintArrayOps(xs: Array[Int]):ArrayOps[Int] =newArrayOps.ofInt(xs)
339
+
@deprecated("For binary compatibility only. Release new partest and remove in M3.", "2.12.0-M2") deflongArrayOps(xs: Array[Long]):ArrayOps[Long] =newArrayOps.ofLong(xs)
340
+
@deprecated("For binary compatibility only. Release new partest and remove in M3.", "2.12.0-M2") defrefArrayOps[T<:AnyRef](xs: Array[T]):ArrayOps[T] =newArrayOps.ofRef[T](xs)
341
+
@deprecated("For binary compatibility only. Release new partest and remove in M3.", "2.12.0-M2") defshortArrayOps(xs: Array[Short]):ArrayOps[Short] =newArrayOps.ofShort(xs)
342
+
@deprecated("For binary compatibility only. Release new partest and remove in M3.", "2.12.0-M2") defunitArrayOps(xs: Array[Unit]):ArrayOps[Unit] =newArrayOps.ofUnit(xs)
0 commit comments