d62dbbb1bd
This commit specializes the existing Kotlin/Native stdlib ArrayList into two subclasses: * ArrayList * ArraySubList This avoids repeatedly checking whether a basic ArrayList is created as a sublist of another ArrayList. In the iterators, checkForComodification is marked for inlining, since this significantly improves iterations performance. A number of benchmarks are added to the native ring benchmark suite, to test whether the changed runtime type of ArrayList.subList(...) has an impact.