bug icon indicating copy to clipboard operation
bug copied to clipboard

Create method `IterableOnce#copyToArray(dest: Array[A], srcPos: Int, destPos: Int, len: Int): Int`

Open joshlemer opened this issue 7 years ago • 0 comments

This would complete the functionality provided by System.arraycopy and allow for some nice speed boosts in things like:

  • Iterator#copyToArray(dest, destPos, len) could be optimized in many cases by using this method, and by setting srcPosition = numElementsConsumed
  • ArrayBuffer -> Vector building could be done without use of intermediate ArrayBufferIterator

This is intended for 2.14.0 milestone

joshlemer avatar Aug 29 '18 15:08 joshlemer