Abduqodiri Qurbonzoda
b67ebf36a2
Implement optimized removeRange for ArrayDeque #KT-64956
...
Test ArrayDeque with size 15. With the existing sizes the removeRange
implementation couldn't reach the maximum number of iterations - 3.
Benchmark results for ArrayDeque.subList().clear() that uses
removeRange() can be found here:
https://github.com/qurbonzoda/KotlinArrayDequeBenchmarks/tree/master/results
2024-01-30 22:37:25 +00:00
Abduqodiri Qurbonzoda
6fdfd4e8dd
Null-terminate Collection.toArray destination only in JVM
...
In other platforms the elements following the collection elements
should not be changed.
As a part of efforts to stabilize Native stdlib.
2023-07-27 11:16:58 +00:00
Abduqodiri Qurbonzoda
2ef50f8c34
Move ArrayDeque.newCapacity to AbstractList
2023-06-06 18:11:57 +00:00
Abduqodiri Qurbonzoda
421cb6971d
Optimized toArray method for ArrayDeque and ListBuilder #KT-42720
2021-03-06 11:14:50 +03:00
Ilya Gorbunov
bf21e1282a
Suppress most of unused parameter warnings
2020-05-19 19:24:00 +03:00
Abduqodiri Qurbonzoda
ec166db506
Implement collection builders
2020-04-30 02:28:41 +03:00
Abduqodiri Qurbonzoda
e89893b6fd
Optimize ArrayDeque tests run time
2020-01-24 05:52:18 +03:00
Ilya Gorbunov
8733d5f9ed
ArrayDeque: avoid triggering JDK 1.6 bug in tests
...
Use System.arraycopy instead of Arrays.copyOfRange to
avoid triggering JDK-7174363 bug in copyOfRange.
Fix package of ArrayDequeTest
2020-01-24 01:39:48 +03:00
Abduqodiri Qurbonzoda
b6849efd47
Common ArrayDeque
2020-01-22 23:22:21 +03:00